It doesn't matter where they live. Foreign investors can still be required to pay income and capital gains taxes on money earned in a particular country. The government can always block or seize international payments to tax evaders.
In theory the countries where Lewis Hamilton races and earns his income could tax him there. But generally they let him slip through loopholes to maintain good relations with F1.