So... there aren't a lot of other choices.
And you might be partially right, nobody likes homeless people. But for very different reasons. I don't like that society lets people fall, almost permanently, on the side line.
The same could be said about SF's tech workers at $social_network_of_the_month. Just because you think you have value, does not make it so. People matter, period.
In practice, how much money should that be expected to translate to? From what I've seen, SF could dump literally it's entire yearly budget at offering care, compassion, and generosity to the homeless without the homeless population shrinking.
They were most likely tenants that have been evicted and couldn't pay, or other similar reasons. Some choose to live homeless, but most do not.
Not everyone can easily pack up and just move. People are social beings, they have commitments, children and probably a place where they have some sort of personal connection.