All that is required is for people who commit those inhuman crimes is the knowledge that they will probably not be held accountable.
I think there are many influences on people that may cause them to deviate from rational thinking. Things like threats, pressure from authority figures, stress in general, fear (immediate and distant), indoctrination/brainwashing/gaslighting, etc.