And the single family homes are shit! They are not seismically sound, they have poor to no insulation, single pane windows, 2x4 framing, rusting rebar destroying the foundation walls, and sketchy electrical. SF is supposed to be pro environment. If they were, they would permit the demolition of a lot of crappy unsafe houses and they'd build some new buildings that are actually up to modern standards.
Source: lived in midtown terrace for years in a serial-numbered home from '56. everything was bad. No functional ground in the electrical panel, plenty of paper-jacked BX wire. actually no insulation. My 1000 sq ft of living space in SF used as much energy in the winter as my 4k ft house in Colorado does, and the climates are way different.