Wouldn't this create loopholes? A US citizen could leave the US to make foreign investments, then come back to the US and be exempt on taxes on this foreign investments while enjoying the benefits of being in the US and not paying their share of taxes.
Most countries tax worldwide income of their _residents_ (not citizens). So in your scenario, you'd end up paying tax on the foreign investments if you profit from it when you resume being a US resident. Unless you don't declare the foreign assets, which would be illegal (gotta file an FBAR each year).
There's no loophole here, a large majority of countries work this way, and OECD countries certainly do (although some have different treatments for short term residents). Usually the logic is: if you don't pay taxes in country A, you'll pay in country B anyways. And you'll pay an exit tax when you go from country A to B in many cases, so country A gets their cut.
Most civilized countries determine tax status based on where the person lived for the year. Reporting how much you earn overseas is one thing, but paying taxes twice while living and earning overseas is extraordinarily cruel.