Well, they have to build the same buildings, otherwise they couldn't create any troops in the first place.
Plus, a computer is much better at microing large amounts of units than a human player, which counts as a advantage for the AI, I think.