The salary in my own country for a mid level software engineer is 600 dollars a month !
Think about that for a moment . . . .
Now imagine if you are a company, you can hire a developer with 10-20 years of experience at the cost below your junior developer.
Why won't you do it ?
The other part of the equation is the fact that if you do not do it you are a strong competitive disadvantage compared to companies.
Now many people on HN might want to crack down on this Donald Trump Style.
But actually cracking down on it will make matters worse.
Software, IP is really global these days.
So as soon as wages are pushed up in america, the flow of FDI ( which is growing at 5x every year in India ! ) will shoot even higher.
Someone made this argument that I find the best explanation for what is going on.
Countries like India have more untapped computational power compared to the US, just due to having 4x the population and not even 1:1 the wealth.
There is nothing immoral about what is going on.
Its capitalism working as intended - I also do not think americans are losers in this game, it just means they will not see any investment or improve in their standard of living while private money is busy improving the lives of everyone else.