Many factors. Most US companies want to have on site engineers. Many of those who work remotely with overseas devs already know they can pay a lot less, so the market is adjusted and those working remotely for US companies are rarely paid the same as if they were in the US.