Probably because she didnt want to get captured. Also I think saying Anakin refused to hurt her is overstating it. But he certainly needed her alive. But if she didnt reveal herself to block that initial strike then pretty sure shed be dead.
And yeah she put up a top fight, even kicked him off the Temple balcony at one point.
Clearly dark side Barriss was slouch. Padawan or not.