Valerie Martin said this quote

Self-inflicted pain has a calming effect; it clears the head, diminishes one's fascination with the ego, and most important, gives one the sense of having taken some real action against the everyday foolishness of the body and of the vagrant, willful, heedless imagination.