Also, the South Bay is becoming/has become enterprise-land. As Silicon Valley startups increasingly aim towards the consumer market, it makes sense that they would locate themselves in the biggest media/consumer/tourist hub.
(Even the biggest enterprise companies can be SF-based, though – SalesForce, for example...)