The best explanation is that it was an ambush.
If they were heading to battle then Bastila should have been ready to use her battle meditation.
That or either they were coming from an another battle (I remember that Carth said that Bastila was also tired), and the remaining Sith forces caught up with them as they were fleeing or simply leaving the battle.