You're thinking about the meaning of life, aren't you? And if you do that, you get scared, right?
There are no answers that can be given by others to the question of the meaning of life. You must find the meaning of your life for yourself.
For example, the meaning of a baseball player playing baseball can be considered from the audience side or from an economic point of view, and from various angles, but for the baseball player himself, it can only be proven when the person himself actually plays baseball. Why do they play baseball? I can't get an answer even if I think about it.
Similarly, it's very important to think about the meaning of life, but it's rare to find something just by thinking about it. I think we can only discover something in the course of life.
However, once they have grasped what they have found as an “answer,” people are now bound by that answer. You will begin to judge yourself and others based on values that fit or don't fit that answer.
Furthermore, in terms of Buddhism, people are also robbed of that “answer” before the truth that “all acts are impermanent (nothing changes).”
For example, the “answer” that I'm living for “this,” such as a mother's child or an artist's work, gives me irreplaceable hope for anything, but at the same time, the “answer” is a double-edged sword that brings fear/anxiety about losing it and hopelessness when actually lost.
Furthermore, there is a hard fact that no matter what I find as the meaning of life, I myself, the person who discovers it, will die someday.
At that time, people may simply stand helplessly in front of the question “Why do we live when we die anyway?”
But that's why people sought religion there. Only religion can surpass “death.” Death cannot be proven by science, so it cannot be surpassed. It is only through religion that people can surpass death.
It's not about forcibly believing something and escaping into a world of delusions and notions. This is probably something that can only be demonstrated in actual religious prayers.
There is no answer to the question of the meaning of life, but it may be said that they are looking for something beyond death.
I've answered a lot of questions about this question in the past. Please be sure to read it.
https://hasunoha.jp/questions/42108