They were of course servants of the Emperor, and Dragon Ball Songoku Songohan Vegeta shirt duties were to attend to the imperial palace’s affairs. They were of course castrated (usually voluntarily) to avoid any possible affairs with empresses and concubines. Sometimes, if they did a good job (or ass-licked really hard), the emperor would give them official positions in the government. But when this happens, the Confucian scholars would strongly oppose it. The scholars reached (or could potentially reach) positions of power by studying and building knowledge. Most eunuchs, on the other hand, came from poor uneducated families; why else would they effectively sell themselves into slavery? The cruelty of castration, as some would argue, might have even warped their personality.