Raiden is a god, therefore, he is immortal. In Shinnok's case, it is stated that he cannot be killed because he's a god. He could have his head lopped off and dropped in the Netherrealm, but he won't die.