You do it to relief yourself, like getting a temporary solution that only keeps you far from a solution, so every time you'll do it harder and harder. You have to clear your mind and keep going. Even it looks dark and scary the more you're going through, just Keep Going
Punishment; self-harmers think they deserve it, or To regain a sense of control; self-harmers feel powerless and lost, and hurting themselves is something they can control, and the familiar pain and healing process comforts them. The sensation of the dopamine hit when the body begins healing itself distracts from immediate problems, and it is often the only form of relaxing or stress-relieving the self-harmer is aware of.