Income taxes and payroll taxes are (significantly) higher though. Companies don’t need to leave the country but may want to hire top talent elsewhere if they need to keep taxes low.
For me as a Swede, keeping as little as half of my gross pay isn’t a big issue since I’m not required to pay for my kids higher education (or any education for that matter), nor do I need to save up a lot for retirement or future illness. But I can understand someone who wants to go to Sweden for a 5 year stint and needs to aggregate as much as possible because their kids will go to expensive schools etc. Moving to a high-tax high social security labor market can seem like a one way street in that regard.