If you read this short history on the castrati, Michael Jackson's bizarre behavior falls into place:
Many of the castratis well-documented personality disorders were a direct result of their disfigurement, as well as their inability to lead normal sex lives. They were neither man nor woman, but something in between.