If you imprison someone for life, you're still keeping others safe though? And killing someone who puts out fake news doesn't necessarily stop those news from spreading, worst case, you have a martyr.
I'm from Germany and the death penalty has been forbidden since the 50s, for context.