Many companies can't hire people in 'any' location due to how their legal entities are setup in different countries, how many of them they may or may not have and possible complications with tax etc.
Once you get past that basic hurdle, you might find that the company is willing to pay more because they want a given skilled worker to be co-located with the team they will be joining to increase productivity which might come at a higher price than hiring into a different location but potentially trading off worker and/or team efficiency.