u/caffarelli has answered this before: https://www.reddit.com/r/AskHistorians/comments/39nqc4/were_there_eunuchs_in_premodern_japan/
https://www.reddit.com/r/AskHistorians/comments/4hybq5/why_were_there_no_eunuchs_in_the_japanese_court/