I believe this. When I go downtown, the restrictions on facilities go up dramatically. Out in the 'burbs where we live, it's far more relaxed. But we don't have homeless people here (to speak of; we do, but it's on the order of a dozen for a city of 40K).
If you’re in an area with homeless restrooms can’t be found.
If you’re not, they’re plentiful and free.