Historical Background of Lich

I wonder how the fantasy fiction genre decided to bind a Lich to a phylactery.

Like what caused them to be dependent on them.