It is a free market overall I believe. Location arbitrage is real and it all depends how the company market it.
But at the end of the day, no company will be spending higher than they need to and no person would like to earn less than what alternative offer can provide.