The other line of argument is again the fault-tolerance I mentioned above, maybe see Taleb or distributed systems. Maximizing efficiency has trade-offs in resiliency. Yes it might be less efficient for there to be 3 ecosystems in 3 countries instead of 1, but its more resilient to shocks. We saw the risks of highly efficient but single point of failure supply chains materialize just a few years ago during the pandemic.
It's also pretty obvious that the tech companies being in the US benefits the US more than other countries. The big salaries are in the bay area, the tax revenue goes to the US, all the ex-Googlers founding new companies found them in the US etc.. So of course Google being founded in country X would benefit country X more than it being founded in the US.