This shouldn't come as any surprise. EVERY company does this to take advantage of tax loopholes, local conditions etc. Transfer pricing is just one of the tricks. I would be surprised if a company
didn't try to pull this around every country.
It's like a casino. Entrepreneurs come to gamble with their money, try to game the house and leave when the party's over. Because there are more casinos than players, they overlook when players break the house rules in the hope keeping them in the casino and even provide free drinks to get them to stay.
The technical term is 'policy arbitrage' but in reality, the countries hope that they have unique characteristics that entices companies to stay. That's why countries set low to none corporate tax, set up tax holidays for new entrants and set up SEZ. But if the barrier to entry is low then so is the barrier to exit.
I can't speak for other countries but in Myanmar, the accounting rules are enforced to FAR stricter levels for foreign companies than to domestic. We also require new entrants to partner with a domestic partner as a form of control and oversight though that is starting to change. In the short run, it may discourage investment but it works out better in the long run IMO.
Ireland is a good example - they had the advantage of being an English speaking country and then they set corporate tax at very low levels. They attracted a lot of tech companies and now they're trying very hard stopping them from leaving. In the meanwhile, they had a property bubble, a banking crisis and enforced austerity measures. They're also under pressure to raise the corporate tax rate to ease these austerity measures. It's all very double-edged.
Edit: this is a weakness of shortsighted politicians btw. They set the conditions for this but they don't have the foresight to plan out the consequences. Probably because by the time their policies backfire, they'll be long retired.