Pretty much every culture around the world in ancient times had some sort of moral explanation for why infanticide was allowed. Now that extra mouths to feed aren't an imminent threat of everybody dying, the practice is considered immoral
https://en.wikipedia.org/wiki/Infanticide
we aren't genetically different from those people, we just happen to live in a time where we don't have to make as many tough choices