every year , thousands of men underwent surgical gelding -- orchiectomy , as the process was known -- their motivations ranging from transgender issues , to curbing sexual addictions , to deep-seated spiritual beliefs .