They have it written in their Constitution.
That's crazy to me, I had to look it up to verify the accuracy, after I read your comment. I don't think socialist or capitalist or any other economic system based 'rights' should be enshrined within the fundamental principles and precedents a society uses for guidance regarding civil matters. Suppose a 'better' system is developed, and a state's constitution prevents it from adopting the hypothetically 'better' system, the days of that state are numbered.
It should go without saying or
requiring, that those who cannot help themselves should be helped by those that can, within a healthy society. If a society refuses to look after its own, perhaps it deserves to fail like it almost undoubtedly will.
Oh, a document says something.
It must be so!
I feel like that's the sarcastic treatment my US representatives seem to view our constitution. No respect shown for the ¹second oldest living constitution of our current civilization... if that even means anything, maybe it means it's time to retire it? I would disagree.
¹Republic of San Marino is oldest living constitution.