Democratic civilian governments offer amnesty to military junta leaders

Why would democratic civilian governments offer amnesty to military junta leaders when transitioning to a democratic regime?