San Francisco really doesn't have Earthquake safe housing. It's been over 100 years (1906) since the last major earthquake (7.0+), which ended up destroying most of the city.
A large portion of the housing in San Francisco dates to that era. However, rather than learn from the mistakes made pre-1906, San Francisco just rebuilt things exactly the way they were before. Look how much damage the 1989 earthquake caused, and that was a sub 7.0 earthquake. Another major earthquake would result in similar devastation to the 1906 earthquake.
The best part is the NIMBYs who refuse to allow earthquake deathtraps to be destroyed for more modern buildings. They've become so complacent and ignorant to the reality of a major earthquake, that they feel the character of the city is more important than the lives of the people in it.