ear issues are an indirect symptom of panic attacks. Whats actually happening is you are becoming extremely tense all over, usually without knowing it. One of those places is your jaw. When you strain your jaw (again, you likely won't notice you're doing it.) it puts pressure on your ears.
If you were eating right before or during it, then it was most likely that.