In the Old Testament, there is another widely cited story of the willingness of a parent to sacrifice a child. It is the story of God ordering Abraham to sacrifice his son Isaac as a test of his faith. He is about to do the deed when God tells him he does not have to.
Where does such courage come from? That is an interesting question, and I do not think we know the answer.