You are pointing to the correct genesis of sexual repression.
God says.... yada yada. So, you have to do what I say or god will cut your balls off.
Wait a minute... doesn't god say to cut stuff down there already?
For crying out loud, what a messed up sexual aberration religion is, not to mention all the wars and killing done in the supreme being's name... whatever that is. Holy Shit.