I would be getting into contact with her teacher, if she doesn't notice she's doing it, it's probably an unconcious urge that her body follows through with.
It could be a mild case of OCD, probably not, but it's worth getting it checked out.