However, these are old buildings with some interesting architectural details, some character to them. They've also survived being around for nearly a century because they were built with stone and brick, rather than the cheap structures that are often thrown up for modern retail stores. I can't imagine a Best Buy shop would still be standing in 60 years without serious dedication to its maintenance. Compare to the factory I live in that sat vacant for 40 years.
I really hope we don't choose to do either one to ourselves.
The stall itself is robotic and self-cleaning, so one human attendant can service dozens of locations. The human labor factor is what usually torpedoes the economics of privately-owned public-access toilets, so if you can engineer the robotic functions well enough, your per-customer operating costs can drop low enough that you only need 1 in N to pay you anything to stay in business.
In actual practice the problem tends to be prostitutes using it as their workplace, IV drug users needing a private cop free place to shoot up, and homeless people.
Embracing those problems instead of ignoring them is likely to successfully generate more money.
Back when bathroom attendants were economical, they were the ones that could chase out or discourage the undesirables.
I didn't mention this, but one of the robotic bathrooms I have seen encourages people to leave in a timely fashion by filling itself with water as part of the self-cleaning cycle. That program mentioned the difficulty in getting the squatters out while still serving regular customers.
[Edit for cousin post:] After the door lock times out, the GTFO timer starts. Don't be surprised if your stall fills with unpleasant odors (mercaptans) and sprays of cold water if you decide to try to squat in there without paying.
Or a screwdriver in the latch. Don't underestimate smart apes.
Or, as people have been doing for decades, they'll move to suburbs. And suburbs of suburbs. Housing is unaffordable in cities. Suburbs, not so much.
Typically residential and commercial areas are zoned differently. You can't just build a house, nor should you, on a strip mall or in an area that's unsafe for children due to four lane streets with high speed limits, lots of car traffic, no green spaces, no infrastructure to handle thousands of people, no parks, not enough sewage capacity, no public trans, etc.
This would just create another Cabrini-Green style ghetto. Lets not repeat the mistakes of the past.
Take, for instance, a Best Buy. A Best Buy could potentially house hundreds, especially considering the vertical space (think bunk-style shelves for sleeping). I'm not suggesting this is good or that it would be comfortable, but we've got more than 4 million people working retail in the US, and retail is going nowhere fast.
IOW, in the markedly more dystopian future that I imagine, a lot of the same people that work in these big boxes will live in these big boxes.