Have you paid attention to whether the AI plays any cards before the battle, i.e., a card reducing the costs for units produced during RTS? If, for example, the grendariers production costs the AI 4 recruits less, then it would be able to produce much more units than you although you have the same number of recruits.