"castrated man," late 14c., from Middle French eunuque and directly from Latin eunuchus, from Greek eunoukhos "castrated man," originally "guard of the bedchamber or harem," from euno-, combining form of eune "bed," a word of unknown origin, + -okhos, from stem of ekhein "to have, hold" (from PIE root *segh- "to hold").
Eunuches is he þat is i-gilded, and suche were somtyme i-made wardeynes of ladyes in Egipt. [Ranulph Higden’s "Polychronicon," mid-14c., John Trevisa's translation, 1380s]
Harem attendants in Oriental courts and under the Roman emperors were charged with important affairs of state. The Greek and Latin forms of the word were used in the sense "castrated man" in the Bible but also to translate Hebrew saris, which sometimes meant merely "palace official," in Septuagint and Vulgate, probably without an intended comment on the qualities of bureaucrats. Related: Eunuchal; eunuchry; eunuchize.