Its arguably more of a failsafe.but note that what I wrote "an amulet, charm, or safeguard against harm or danger."
Merriam-Webster defines safeguard as "something that protects and gives safety". The phylactery (in 2e and 3e) contains the lich's soul for its protection.
(edit: Although at this point I'm admittedly mincing words)