There are far less high IQ individuals in the world than the world needs right now.
We can teach coding to young people, but as of now we can't reliably increase IQ.
We have studies that prove agents such as piracetam administered to pregnant rats increase the intelligence of their offspring.
If the Tech titans that want cheaper labor really want to solve the problem of lack of quality engineers they could think long term and throw massive amounts of funding at neuroscience and nootropic research.
In the information age we all live and die by our wits. Policy and R&D money should be directed at raising the mean intelligence of the population through novel scientific breakthroughs.
Far easier though to just lobby for government policies that make it easier to import the rare kind of people Google, Microsoft and Facebook need.
So we have a situation where no one is focused on solving the root of the problem (a need to increase the cognitive abilities of humans) and no one is lobbying to protect the financial interests of working coders in the United States.