In the old days, the economy of a country was closed and competition was minimal. Today in the globalized world, companies have to compete with foreign companies. If I want to buy a software (or an iPhone) do I really know or care where it is being engineered or built? I look at the price only. As a shareholder in these globalized companies, I require that they maximize profits. If that means moving their back offices or development branches somewhere else, then that is Darwin's Law.