"Your diet is too spicy; try eating bland foods and maybe you'll masturbate less, SINNER!"
19th Century History
20th Century History
(media.piefed.social)
I think it originates from ancient social constructs. Because its very easy for men to knock up women and then abandon them and their child, it became necessary to have social rules to ‘bind’ couples through marriage.
But in most ancient societies, the woman is punished and policed much more harshly than the man.
It's not really oriented towards keeping men in check.