Location has almost nothing to do with the productivity of workers in Silicon Valley.
Also: Google (for example) has offices in lower cost locations, too. Why do they keep the offices in Silicon Valley open at all, if location is not important?
But it does exist.
Why would they keep their high rent offices in Silicon Valley open?
Are you saying they decision makers are all irrational? They still have to compete in the market. Any company that could get equal productivity out of random locations could eat their lunch with a lower cost base.