I'm not sure, but I can guess. Castrati, as you possibly have found, were male singers that were castrated before puberty. That gave them the ability to sing higher notes into adulthood.
In this situation, I think it may mean that he was yelling shrilly about the situation. It could also possibly mean that he was acting in a pubescent teenage way.