17 month old keeps grabbing his ear...any ideas?

He’s been doing this off and on for a few months now. We have a doctor appointment this month, but I just wanted to know if anyone else’s child did this and what it was?