You have to understand that this is a cultural difference between Sweden and the US, and Canada is more like Sweden but far from the same. In Sweden, the culture of things like the best possible healthcare and education is not a "premium" thing like it is in the US, over here it is seen as a basic human right to have access to the best possible healthcare and education no matter what your financial status is.
Thanks to this culture, ideas like making a profit off of peoples health issues is frowned upon and therefore medicine for example is not even close to as expensive as it is in the US. It's the same with the 16 months parental leave, it's considered a basic human right to be able to spend more time with your newborn if you want to, without impacting your finanical status as much.
Of course there is always something better available if you've got the dollar for it, but the Swedish healthcare is generally very good. I've had an uncle done heart surgery, a friend with brain tumour and both are healthy as horses now and they didn't have to spend any money.
I should also mention that the Swedish people is generally very healthy thanks to our laws and EU directives surrounding food and medicine standards. Overall the quality of food is better here than in the US, due to new chemicals has to be proven that they are not harmful to your health, while in the US new chemicals has to be proven that they are harmful to your health before it can get banned (so all new chemicals are banned by default, and allowed when proven otherwise). Additionally, antibiotics and other harmful medical treatment for livestock is banned in Sweden, so the resistance towards antibiotics is generally lower here as well. The reason I mention this is because it goes hand-in-hand with our government-funded healthcare. We invest a lot in making the people healtier overall.
This is a cultural difference, and the reason I stress that so much is because I don't want you to mistake this for a socialistic country, like so many do, because Sweden is very liberal overall.