indeed, war couldn't happen without rules. training, marching, maneuvering, following a battle plan- these all require discipline and rules to be effective.
if there were no structure, no rules, it would just be fighting- like animals. it could never reach the level of war. that takes human ingenuity!
The surprising thing is that there are rules between the parties. Of course every army has rules internally, but having international rules everyone is bound by isn’t obvious.