Not to look a gift horse in the mouth, but it's always been puzzling to me why American tech wages were so high.
So competition over a limited talent pool in combination with a vibrant economy and many successful companies that make a lot of money. At least historically.
High salaries isn't limited to tech. Bankers, lawyers, doctors e.g. tend to earn more in the US.
Another aspect is that you get paid more but you potentially have higher expenses. So some of the delta is related to cost of living. But not all.
Now days, companies offer top dollar for Junior-level AI talent. And you see where that's going.