Money is cheap in the US, and most of EU countries are quite pleasant to live without obscene amounts of money in the bank (basically thanks to public services), so any good offer it's quite convincing.
Not to mention that EU governments don't see tech companies as strategic assets, unlike the US/China.
So I guess it's a mix of culture/policies.