In the medieval period, the butchers of the court were also the surgeons of the palaces. They looked after people and animals who needed surgery. There are reports and records that after battles, even during the wars, captured deserter soldiers, considered incorrigible cowards, could be sentenced to castration.
The same butchers who performed the castrations of horses, oxen and pigs, castrated deserters and sentenced prisoners.
The technique required the ability not to obstruct the urinary channel by sewing the incision, allowing the miserable urinate. To stop the bleeding, those who did not die during castration were hung upside down for many hours.
This drawing I did inspired by a drawing of my friend, Sherwin of Praha.