Why do I feel the need to hurt myself?

When my boyfriend and my self argue and he overwhelms me with emotion I just want to hurt myself and by that I mean cut my self. I want to do something / anything painful to my arms. It’s a strong urge I get the relieve my emotions.. why!???