Because he doesn’t want to start a civil war.
If a candidate can’t leave office or lose an election without risking legal and civil prosecution, then incentive to leave office or accept the outcome of an election doesn’t exist, does it?
The same goes for being elected and being charged and threatened with being impeached upon entering office.