I'm so sorry to hear this happened.
Sometimes they are not wired correctly in the brain and instead of those normal instincts they become hyperdriven instincts to breed and protect young and some birds end up killing their mate and/or babies this way. Some just do not make good parents and these types of birds should not be bred in fear of babies carrying same qualities.