Not just China. They were almost everywhere, especially in the harems.
Rab, they were without testicles. At young age they were castrated so they never really "grew up". Their voice was a voice of a child, they had no facial hair and since they had no testicles, they couldn't produce estrogen...