Are you kidding? Remember the big white buses that everyone is mad about? They play a role here.
The valley tech companies have mitigated the natural barrier that would ordinarily limit the number of tech employees living in the city -- the pain of commuting. So rather than staying close to work and building communities where they live, they use the city as a glorified suburb, but with cushy private transportation. There are a variety of things wrong with this, not the least of which is the fact that they reduce housing supply for the natives.
Econ 101 theories about supply and demand don't apply when large external forces are subsidizing the demand side of the equation. One can quite reasonably argue that instead of "building up" (which is expensive and disruptive) SF should just ban the private buses -- it would be cheaper, more natural, and would solve the same problem.