How does genocide happen? - eviltoast

I can get behind murder. I feel like this, to some extend, is a genuine part of human behaviour. Even the horrific aftermath of such. But genocide truly feels inhuman to me. So I can never fundamentally understand how in history, civilizations went from point A to point B to Point Genocide. Any thoughts on this?