You mentioned Estonia in another comment - it might be the case that Estonia is a special case or has a scheme for attracting talent that doesn’t include worldwide tax
I see now that most countries do tax worldwide income, just that most of the time they have DTA agreements so you can offset tax paid in other countries against your tax bill.
Still the common norm is that PIT is only levied on income earned in the country.