Yes, the burden of healthcare costs in places with universal healthcare are spread across all taxpayers, but for that you get a society that can be reasonably confident that getting sick won't bankrupt them (especially if your socialised healthcare nation also has good welfare).
It's easy to dismiss as a "won't happen to me" kind of thing, but in reality it can happen to anyone. A couple of years ago my wife was suddenly admitted to hospital for a couple of weeks and then physical therapy for 6+ months and it didn't cost us anything except her lost income. In the US that could've easily run us several hundred thousand dollars with bad or no insurance. There's a reason medical bills are the leading cause of bankruptcy in the USA.[0]
[0] https://www.fool.com/retirement/2017/05/01/this-is-the-no-1-...