US is the outlier. Canadian tech salaries are much higher than European, and when working remotely for a US company the compensation overlaps the US salary bands very substantially.
However the ceiling in the US is so much higher that it still makes sense for many to tolerate the chaos and uncertainty of moving here for work.