I think one issue is that the definition of Europe varies wildly when taking colloquially, that 40k figure can be valid in parts of Southern Europe. Although the market has shifted massively in the past few years so you can shift that figure to 60 or 80k even in the south for senior roles.
Even at the upper averages though these numbers still aren't really all that competitive. As a single data point, I'm earning 2-3x the local market rate in Europe (170k) by working for a US startup remotely.