…the term eunuch in the ancient world included several different subcategories. What they all had in common is that they were not sexually threatening to women. (Really, to the men who “owned”/controlled those women.)
They could be castrated, because of birth defect or injury, or intentional castration. But they could also be what we would label as gay or trans or asexual.
They were often able to achieve positions of high status because they were “safe.” (Maybe they were thought to be clearer thinkers because they weren’t obsessed with fucking women?) They were also able to be trusted in women’s spaces.
Non-readers of Hebrew may underestimate how frequently eunuchs occur in the Hebrew Scriptures, because the Hebrew word (saris) is often translated differently, as “court official” or the like.