Merchants understandably don't want to provide free bathrooms to the general public even where homelessness is not the driving concern. It costs them money while not making any money, so they limit bathroom access to paying customers if they provide bathroom facilities at all.