1) Poor spell usage (prioritizes resurrecting dead units... meaning the AI would rather resurrect 10 dead skeletons than 5 liches).
2) Unit positioning (groups all units together).
3) Stupidity (prioritizes chasing a weak unit over capturing a town).
4) Any battle involving the AI can be played twice as well as if a real player were involved.