It seems obvious to me: if laws against behaviors that are common among homeless were actually enforced then some subset of the homeless population would try harder to not be homeless, or move to another location.
Okay, so it's "run them out of town" instead, but the effect is the same: you're just passing the problem off to someone else, to dehumanizing effect for the person.