Lubricant prevents the metal parts of the door from rusting. It also acts as a barrier between the environment and the door lock, making cleaning the entire system very easy.
Moreover, it facilitates easy extracting of any broken piece from the door.