Silicon Valley happened because of proximity to Stanford University and Moffett Field and the copious amounts of government / military funding and contracts that came through them (DARPA, etc).
This is a very basic fact of the history of SV that many in the VC scene are reluctant to acknowledge.