As a short term tourist, you're a valuable resource. As a long term resident, you may very quickly become a net drain if you pay your tax somewhere else.
And for most people, if they live and work in Thailand most of the time, they will either not pay tax in their home country, or will pay tax proportional to the amount of time they live there, on the expectation that someone who is resident outside the country most of the time will not expend much local resources.
Laws have dealt with this kind of scenario for a very long time since it's been an issue in border areas pretty much "forever" that people try all kinds of creative methods to cut their tax costs. There's nothing particularly new here with the internet other than magnitude.
The biggest notable exception that can cause expensive double taxation is the US, since the IRS likes to get their hands on US citizens income regardless where they live, but even in that case it's ameliorated substantially for most countries via double taxation treaties.