DD did this when she was teething as a bub, drove me mental, but I was told it was very normal.
She now does it at the age of 2 when I am trying to brush her teeth, she clamps her teeth together and grinds them, coz she knows I hate the sound