Both historically and in our present day, becoming a eunuch is not typically something that a man does voluntarily. It is done too him, often while still a child, for the purpose of selling him into slavery. Nothing that is done to you without your consent can be a sin.
I cannot even imagine...