Deuteronomy 23:1-2 (KJV)
1 He that is wounded in the stones, or hath his privy member cut off, shall not enter into the congregation of the LORD.
2 A bastard shall not enter into the congregation of the LORD; even to his tenth generation shall he not enter into the congregation of the LORD.
That was back when the presence of God actually dwelt within the temple. You could not go into his presence unless you were completely clean spiritually. if you weren't you would die instantly.
And if you get neutered, God doesn't want you around. You can't breed for him, so you're trash to thrown out.
He makes the rules. You had to be completely clean and that stuff probably made you unclean.
How does being injured in the groin and losing your dick make you unclean?
I won't even go into the thousands and thousands of people that were mistreated for being bastards over the centuries after Xtians made being a bastard not only a religious crime but a social one and in some places, a legal crime as well.
God, if he exists and he made this world we inhabit, was seven kinds of an idiot.
He created a people that were imperfect, allowed his only rival to corrupt them further and then handed down rules you had to perfect to follow.
By the time he figured out that he had fucked up that big, his only recourse was to sacrifice his son to stir up enough attention to enforce the new rules.
And even then, because he can't get anyone to agree on what his son said, the fuck ups continue.
God, as I said early, is an idiot.