No, actually it isn't. It's not a binary thing, where it's either prevent you from seeing people or going out of the house, or zero restrictions. Sweden's choice was to go with purely voluntary restrictions. The alternative is some restrictions. Where I live, we've had a mask requirement for quite a while and basically nothing other than that, and that is indeed an alternative Sweden could have chosen.
In addition, "being prevented from seeing friends and family, and not being allowed to go to work" was to a large extent dictated by the circumstances. When some areas got to the point that they no longer had hospital capacity, they had no choice. A simple look at the correlation between restrictions and health outcomes is a textbook example of bad reasoning for an intro statistics course.