Just reading now. At a guess I'd say it was because they went on a UK style lockdown just four days after their first death.
Not sure about other factors, like how well prepared their health care system was, testing ability, social factors etc. They're a much less dense population too which I'd speculate is what has kept Sweden out the headlines.