 Actually, that was very common practice in the ancient world because who have guard the harem and also that if you had no prospect of children, that you could be more trusted because you didn't want to supplant the king or supplant anyone else and get your descendants into positions of power. Nip it in the bud.