You think that the sun, rocks, and trees give comfort to humans? After losing a loved one?
Perhaps there is more confusion than you recognize regarding what actually exists, and your belief or disbelief doesn't change that.
Clearly you don't understand the importance of sun, trees, rain et. al. to primitive humans. It literally meant life or death if the sun didn't shine enough, or the rain was missing, or the trees weren't bountiful. Hence the gods of such things.
Perhaps the confusion is yours.