Why resign?

Several White House aides and policymakers have resigned in the past 24 hours.  Frankly, I don’t get it. 

First, it’s way too late to salvage your reputation.  Second, at this point you can (arguably) do more to protect your reputation by saying that you are staying to prevent Trump from doing something crazy in the final days of his presidency.