We need to be able to put the old ways of our old lives to death, so that we can receive the gift of New Life that comes from the resurrection. The anointing at Bethany is a preparation for the resurrection.