In the Books of Deuteronomy and Leviticus the Hebrews put a safety net under the entire society so all could survive. The first line of defence was the family. Their laws created an unbending stricture on family life. This was because the family was the glue which held the community together.
I would encourage you to skim through Deuteronomy and Leviticus and think about some of the safety nets we have in our own society today. Is the family really the glue which holds the community together?