I'm surprised no one has mentioned corporate tax yet. A worker in a foreign country (potentially) exposes the home company to corporate tax by the foreign company. Ianatl and there are probably a million caveats, but I've had multiple companies and tax people warn me about this.
Imagine Apple USA being taxed by New Zealand, for example. That's the main reason Apple employees are employed by Apple NZ