I know someone who bought a house 5 years ago and rented it out. She had to cough up $1,000 per month to pay all expenses. Rent has now caught up so she's breaking even.
In the rest of the US where housing prices aren’t as inflated, it can actually be cheaper to own.
Hence complaints of NIMBYism. The lack of new development in SF drives housing and therefore rental prices upwards, and so if you owned property before the bubble, you can now charge rent at the modern, high rental costs while paying a mortgage based on the lower pre-housing crisis prices. You could easily be pulling in thousands of dollars a month this way with a single rental property. So lots of people are now have a big incentive to fight against new development.