So as many of the famous philosophers such as Aristotle or Socrates asked a questions that a child would ask. In my philosophical view life has a purpose. even the most lowest form of life if such as a cell has a purpose in its time. Looking at animals, they have a purpose. You can say at a basic level of life, we all simply strive to survive, our purpose is to adapt and survive and reproduce.
Now you might say that hey, we already past that evolutionary state of mine. Well of course we have. But now what is the purpose of life now that you have gone past that evolutionary state of mind. This is where religion comes in. Religion gave us a purpose to live, it gave us a meaning of life. but at a fundamental level, we our selfs give life its own purpose. In actuality we constitute our own path. Thus giving Life its meaning.If u dont know your purpose of life, you could look at life in a evolutionary level, which is our life purpose is to attain knowledge, contribute to humanity, grow and reproduce, anything beneficiary for the betterment of our offspring humanity instead.