Don't forget Greyhound Therapy either! (Over which SF is currently suing the State of Nevada)
http://www.thedailybeast.com/articles/2013/09/23/nevada-sued...
The history in this article is very interesting, but I always figured that the answer was more simple: (1) generous social programs compared to the country's norm, and (2) mild climate.