Well in most spiritual beliefs, a person in mourning looks to a hope beyond the grave that their friend/love/parent/etc. is either someplace better or reborn, starting their life anew. In conclusion, it gives the grieving a sense of hope for the people who have passed.