The sentence might be OK if castration was part of the deal.
40 years ago while on a trip to Jamaica I saw a newspaper headline where a legislator was attempting to get a law passed making the penalty for rape...mandatory castration. I never heard whether he got it passed or not. Prolly not.