The title made me expect this would talk about places that did have enough toilets. This has been my experience visiting Beijing. I'm not expert, but my understanding is that a conscious government effort was made to reverse a status quo of there being absolutely no toilets, including in many homes, that resulted in a sanitation issue. It seemed like now there was a whole government office administering not-terrible bathrooms across the city. Of course cheap labour may make the attendant more feasible.
Of course as a westerner I rarely left tourist areas, so my experience likely isn't representative.