i can see the teacher's point if you've had trouble in the past
if you do well in the class and have shown no signs of being unsure of things then that's not extremely justified
at that point it's more on-par with just wanting people to work for the sake of working
regardless you shouldn't have responded in that way, even though i don't know the circumstances. that's just not how you talk to people who hold authority. she had every right to do everything she did in response, and i'm extremely surprised she didn't take you personally to the office after what you said.