The lich is a good wizard who was forced to become a lich in order to remain around to counteract some powerful evil force. He/it spent the last years of his life directly restraining some powerful evil demon (make it something not quite physical, for example a demon of madness that manifests by making victims psychotically insane...evil human sacrifice cults start springing up all over the place and random people on the road start attacking out of the blue with no provocation, sort of like...gasp! PCs!)
So the Lich is at the bottom of some dungeon complex using spells and powers that are so far beyond the party's understanding that they can't perceive them, to hold the evil imprisoned. He/it is also keeping random strangers from wandering in and interfering. After so long a time, the lich just sort of drifted into undeath without really noticing (keeping a set of spells up constantly for years will do that to ya). The PCs manage to get the drop on the Lich when he's weakened and...