1. when (the leaders of some) some belligerent tribe, nation or coalition etc perceive that they can promote their interests by going to war without risks that at first blush will outweigh the gains.
2. when some (the leaders of some) tribe, nation or coalition etc can credibly anticipate that they are about to be attacked and then go to war, because 'attack is the best defense'.
Proof abounds in history that war is not inevitable. One example: peoples all over Europe that used to engage in constant war with their neighbors in the next valley, next district, next-door nation, over hunting-, grazing-, market- and raw material opportunities have ceased to do so even if they are essentially the same peoples.
It's of course essentially just simple cost/benefit analysis, not blind human nature.