Sweden explicitly eschewed a policy of herd immunity. It’s a common misconceptions and, if you ask me, an intentional MSM fake News thrust.
It may not have been their policy to achieve herd immunity but they may have achieved it nevertheless.
I think unplanned herd immunity may have happened in NYC too, thanks to their leaving the subways open.