This isn’t just solidarity; there’s self-interest involved. A society that abandons the old and sick to die is a society that will eventually abandon you, if you ever get sick or old.
If you think you will never get sick or old, I have bad news for you about how time works.