They knew their numbers, and calculated they had ample resources and supplies to manage the strategy they chose.
It is still dicey if their infection rate takes off. So far, they seem to have stayed their course.
Link: https://www.symbiocare.org/how-sweden-achieved-world-class-medical-and-social-care/