Say you have an opportunity to end a person's life instantly, without their foreknowledge, without pain. This person has no friends or family or responsibilities of any kind. This person is virtually guaranteed to do more harm than good to society on par over the rest of his natural life. No other people will ever know of this execution. Without emotions, there's no reason not to legally oblige such an opportunity to be taken.