In Tiktok's case it's because the revenue is actually flowing through Ireland.
EDIT: here's more about the general mechanism I'm referring to https://archive.is/0hcAK
EDIT: here's more about the general mechanism I'm referring to https://archive.is/0hcAK