How was she supposed to know that her compulsion was something that she needed help with? All her parents are telling her is that this thing she's doing is wrong and she should stop it, and she listens to them, because she's a child and they're her parents.
And lemme tell ya, my parents did the same thing to me when I used to stim by stretching out my eyelid and jaw muscles. It made me look "weird," so they told me to stop it, because what am I ret*rded or something? And I didnt know it was something I should bring up to my teacher or the mental health counselor (which. didnt exist. because I was in elementary school and they don't tend to have too many of those). I just knew what my parents told me- It's a thing I'm doing wrong and I have to stop.