1. Remove from society, with no additional cost to society. 2. Signaling to dissuade new offenders.
You can go one step further and punish the family, parents, and friends. Seems to be happening in the US for underage mass killers.
It’s a simple, effective, and low cost way to deal with crime of the highest magnitude. Why should it be off limits for corruption?