99.99% of the world's population don't live in San Francisco, so it's probably geared towards them
Is the situation any better in other big IT-cities in the States (Seattle, NYC) or in Europe (London, Amsterdam, Zurich, Munich)? Some of these are slightly better than SF and some are even worse IMO.
Yes, housing in the core downtowns is pricey, but get outside the city and there are decent options. This is true of a lot of places. The Bay Area makes it unusually hard to escape high pricing.