the joke is just making fun of that old adage, "deep down he knew it was the right thing to do" commonly intoned while a character is sacrificing something for the greater good while obviously ed here is committing an unquestionably violent, horrific act.