Anointing was Used for Preparing the Dead for Burial
Source: TTT
Matthew 26:12
By pouring this perfume on Me, she has prepared My body for burial.
Mark 16:1
When the Sabbath was over, Mary Magdalene, Mary the mother of James, and Salome bought spices so they could go and anoint the body of Jesus.
Luke 23:56
Then they returned to prepare spices and perfumes. And they rested on the Sabbath, according to the commandment.