I first noticed my son doing this when he had just turned seven. I mentioned it to the doctor, but she didn't think it was anything to worry about.

He occasionally does this even now at age 10, but only when he thinks nobody is looking. I just asked him why he did this and he said it was a compulsion. When I asked if he could control it he said "Hopefully" and then mouthed the word hopefully.