So this whole time, ever since their fight on the train, Sam was training Raiden to unlock his full potential to get his revenge on Armstrong and the Martial Gear. He did it knowing that Raiden would probably kill him, which he does. He had no regrets.