Its weird I know

I deal with anxiety and since exams is around the corner and I’m over loaded with assignments my anxiety has been sky rocketing, today I was hanging out with my boyfriend and out of the blue I just started to think about the things that are stressing me ouch which lead to me have a grand old panic attack. It just started to hurt in my chest and idk why but I’m instinct to get rid on the pain is to scratch my hand hard, it helps get rid of the pain but it’s painful to do.

I felt extremely bad bc my boyfriend hated to see me in pain and tried to stop me from scratching myself, which in my case made me feel worse bc I couldn’t scratch myself and I wasn’t strong enough to get my hands out of his hands. He just held my hand until the pain went away which I’m so great full for someone like him.

But I still don’t understand why I do it?

Does anyone else do it?