as an old, i remember a time in the US where keypad/locked bathrooms at retail establishments were rare enough to joke about. generally the provenance of the odd gas station on disused federal highways rendered obsolete by the interstate system, now they are everywhere. they used to blame "addicts", but it was clearly a way to exclude the poor.
and now that everywhere has unhoused people, if not semi-permanently in the area, at least passing through, it is uncommon to find an easily accessible, unsecured bathroom open to the public unless the community has specifically allocated resources for it through a democratic process.
personally, i find cities that don't make going to the bathroom universally easy to be morally disgusting and deserve to have every puddle of piss and pile of shit they get from whatever brave heros can push out.