Bay Area's real estate is actually pretty cheap, considering how much economical output the area has and how desirable the location has been historically.
Look at Vancouver, Hongkong, Shanghai, Moscow, Tokyo, all have waaaaay lower average household income than San Francisco Bay Area, yet wil much more expensive realestate price.