In ancient times, it was a routine operation for eunuchs to marry, but Zhu Yuanzhang resolutely disagreed with this practice and used the punishment of peeling to put an end to it. Zhu Yuanzhang thought that eunuch was not a complete man and could not give his wife a normal husband and wife life. The eunuch's wife not only has no normal husband and wife life, but also has no children of her own. It is cruel to women! Moreover, eunuchs who marry wives are either rich or powerful, and the wives they marry are forced. Plus the eunuch is from the palace. If there is such a heartless thing, doesn't that mean hitting yourself in the face?
To sum up, Bian Xiao thinks that Zhu Yuanzhang's ban is only aimed at rich and powerful eunuchs. In the palace, if the eunuch and the maid-in-waiting really hit it off, they will definitely live together for a lifetime, but they don't necessarily need to get married, because once exposed, they and the maid-in-waiting are likely to be in danger. In other words, the eunuch knows that he can't give the maid-in-waiting happiness, and he won't let it go on. But rich and powerful eunuchs are different, such as An Dehai, a popular eunuch in Qing Dynasty, and Gao Lishi in Tang Dynasty.
If it is a product of the history of the times (eunuchs in ancient palaces are all products of imperial power), no matter what punishment, it cannot be avoided.