Question: why were eunuchs a thing?
Answer: Eunuchs would usually be servants or slaves who had been castrated to make them reliable servants of a royal court where physical access to the ruler could wield great influence. ... In cultures that had both harems and eunuchs, eunuchs were sometimes used as harem servants.