It is a precious gift to the person who has died.
It presents a portrait of the dead person. “He is dead, but look, there s/he still is!”
There’s an element of the miraculous in that.
It fixes memories and feelings, and establishes that they live on.