It's easy to knock Canada for its personal income tax rate, but compared to European alternatives, it's still quite low, despite offering a whole lot of baseline public goods.
That said, while senior SWE salaries here absolutely not even close to competitive with the Bay Area or NYC they are not that far off from other places in the US (like smaller midwest cities etc). While Canadian salary packages are depressed, it's also partially a result of: they're not inflated.
The bigger concern is more the lack of interesting work.
Many do similar calculations. Home is home. It's profoundly arrogant (and very American) to assume that the "best talent" moves for money and opportunity.
Americans have very high labour mobility rates, and often assume that's how the whole world works. But in most places in the world the idea of uprooting your whole life for a job is seen as odd.