I understand that in SF it is principally people who have nowhere else to do it. People who do not currently own or rent a domicile with a toilet, and who do not work anywhere where such facilities are provided, and who have no access to any public facilities.
"People are taught to hold it back in until they get to a bathroom..."
For these people, there isn't one.