Exclusion breeds the behavior that justifies it
When people expect, with good reason, to be refused the use of public toilets, they relieve themselves in the street. Shop owners then see this and decide such people should be kept out of their businesses. Each side's response confirms the other's assumption, so the exclusion feeds itself.
