I will assume that somewhere out there a city council is making this kind of law because they care about human beings.
I have trouble believing anyone in that position hasn't had it pointed out to them that homeless people don't choose sleeping on the street because it's awesome, but because there's no real option in their specific case.
Maybe in a small town council, I guess.