To be fair, the also essentially non-existent enforcement of rules and laws and the fact that SF is a mecca for international tourist and panhandlers can make decent money (i.e. Union Square) plays a role. Let's not factor out the economics and lack of consequences for bad behavior.
However attractive the weather might be, we don't have to use the axiomatic method to figure out where the SF homeless come from; the population is regularly surveyed, and is overwhelmingly local.
Winters? It's 56 in SF right now. As to the 'come from all over the country for the excellent social services', there are lots of studies and surveys on this a google away. Statistically, nobody does that.