My view is that we are born with empathy and a need for relationship with others - witness the bond between families - and if we think about it we can imagine what it would be like to be without them - which is why we make such effort to keep them safe.
It could equally be argued that we see what can happen to families that are riven by abuse, debt, lovelessness, etc., so make an effort to keep our own safe.