BDSM Toys"sensory play" often involves inflicting pain, even when no actual harm is done.
It causes the release of endorphins, creating a runner-like aftertaste at the height of a workout or after an orgasm, called "flying," that some people find pleasurable.