They easily recover those costs from Govenement incentives.  

And they don't get graduates from Ivy leagues schools and Oxford and Cambridge in Toronto, while they could still get graduates from Waterloo if they have their HQ2 in Boston.