Original: Therefore elephants used by humans have typically been female, war elephants being an exception, however: as female elephants in battle will run from a male, only males could be used in war.
Simplified: Most elephants used by people are female, except those used in war. In a battle, female elephants run from males, so armies needed males.