It's certainly a constraint of any medical system but not a goal, primary or otherwise. The goal of socialised medicine is to provide medical care equitably to everyone who needs it - to assign that as a right. Care only has to be rationed to the extent that resources are constrained below what is required to meet the need. And all of that is orthogonal to a system like that in the US, where care is a luxury not a right.