An Act of Justice, Not War
Commentators frame this command not as a typical act of war, but as the "execution of a righteous sentence" upon a guilty people. Matthew Henry notes that while a sword of war might spare women and children, the sword of divine justice targets guilt. The Midianite women were considered the "worst criminals" for deliberately seducing Israel into sin and idolatry.