I agree that on the whole, nothing matters. But in a felt sense, my life matters more when I have other people to care for and interact with or some goal that needs to be reached. Reflecting on my inevitable end gives a sense of urgency and an appreciation of the people around me.
Quite a lot of people have died already with not a lot of consequence.