That's it, Bobert. In a nutshell. Jesus' teachings were not lost on you, ol' pal!
People commit harmful, even terrible acts out of fear and ignorance (and a variety of misplaced assumptions which = ignorance). That is why Jesus said, "Forgive them, for they know not what they do."