One of the important purposes of a society is to improve the raising of kids who might not be raised well by their parents alone, because it is a valuable outcome to everyone.
You don't choose who you get born to, so if society chooses to say "If you get born to a shitty person, you will suffer immensely and we will do nothing about it", that is a bad society.
Nobody deserves to suffer due to an accident of birth.
Also, "It takes a village to raise a child" is not exactly metaphorical.