Let us take medicine as an example:
Higher doctor to patient ratio, better life expectancy for countries income level. Doctors in Cuba go door to door for routine checkups.
Cuba life expectancy is comparable to US life expectancy and has a hard time acquiring sterile needles due to the blockade if that gives you an idea
It is because they care about the population more than they care about profits, both for moral reasons and because the whole mandate of socialism is prioritizing democracy (and therefore the needs of your constituency) over capitalism