The scene in the movie was a gladiatorial re-enactment (not the actual battle), where Maximus was supposed to be one of the overmatched and defeated Carthaginians, but due to his leadership, the gladiator "Carthaginians" routed the Romans.
Very cool scene - whole movie is historical...