Richard Von Krafft-Ebing said this quote

There are men who have themselves whipped simply to increase their sexual pleasure. These, in contrast with true masochists, regard flagellation as a means to an end.