AI extends their line very thin and long, so if they don't have enough units, they can't really turn to flank in time. If AI has 20 units then probably they have more chance to do that given the human player has slower and fewer units.