Sorry this is very wrong. SF has so many homeless people because they come to SF to get free things.
Most of that is not direct cash transfers but they absolutely receive more in services than in other places, that is why they attract homeless from all over the country.