Isn't USA even worse? If you move as US citizen to EU, you would need to pay bot h local EU tax and USA tax right? (I am not a USA citizen, this is legit question)
The US does not have an exit tax for businesses, but has an absolutely horrible tax system in which expats are treated badly. The reporting requirements for expats are insane: all bank/brokerage/whatever accounts with max levels during the year, FATCA and FBAR forms, and the cherry on top: Form 8858 ("Foreign Disregarded Entities", whatever that is) which is needed for your self-employment and for each of your rental…
On the other hand, if you do have an accountant by your side, you potentially expose yourself to some of the most powerful labor arbitrage on the planet as a tech worker. Making $100k remotely from the US might sound like a bad deal until you live in a country where the average wage is $20,000. Like all things US tax wise, you are disproportionately rewarded for being clever and reading a lot.