Because not every country wants to be overflowing with expat techbros.
I've seen some of this resentment in SE Asia. Foreigners work remotely from paradise, which is great for us -- but the locals see you filling up the nice restaurants and renting the best apartments and driving up the cost of living for locals who, unlike us, don't have many options about where they live.