War had an entirely different social, religious, and political framework than just killing people. That comparison is really problematic. How societies justified warfare varied, but war is not just a larger scale of murder when talking about psychology and socio-cultural logic.