IMO the most insane part about SF is that something like 70% of SF rentals are rent-controlled. I've met plenty of young techies/finance types who pay well below market prices for nice apartments while making well above average salaries.
It takes mental effort to not think about the imbalance. It wears you down. It is the most likely reason I would leave the Bay Area even though I can afford the rent.