The idea of total war didn't become a thing until much later on.
Troy, Assyria, Babylon, Macedonia, Carthage, and Mesopotamia would like to have a word with you on that point. Or they would, if they hadn't been completely wiped out. The Mongol Hordes were known for total warfare. It was their whole spiel: join us, or be completely destroyed.
The very concept of not targeting civilian populations during warfare is so recent that there are people still alive today who were around when the idea was first proposed.