Evolutionary phycologist Malcolm Potts explains this phenomenon as an evolutionary adaptation developed in some species of primates. In particular, we share this behavior, "the war instinct" with our close relative chimpanzee. The behavior is the following: identify your "ingroup", the social group where you live, and then attack an "outgroup", a competing social group. This is an evolutionary-beneficial behavior because it allows a group to gain additional resources: land and females. According to this theory human predisposition for war is innate rather than cultural.
If you are interesting in learning more about this theory, here's the book:
Sex and War: How Biology Explains Warfare and Terrorism and Offers a Path to a Safer World by Malcolm Potts ISBN 978-1935251705