This is a pun on the phrase 'beats me' which in this context means the speaker cant figure out a reason why someone would want to be a masochist, but it's also being used because masochists enjoy pain and therefore would  like to get beaten
Beats me why anyone would want to be a masochist .