To be honest, apologizing isn't exactly easy. It means you were wrong and many people don't like being wrong or admitting it.
It's the way we're wired, but that doesn't mean it's right. We all just have to be conscious and work towards taking responsibility.
Sorry about the beating. 😂 And forgive your teacher too.