The purpose of human life is becoming a better person.
For this objective, humans do various things according to what exists inside them and their circumstances. According to the results of their behavior, some achieve the goal and the others do not.
To be sorry, most people are born, live, and die while they are unaware of the objective of life. Whether they know the purpose or not, humans produce their own results from their life. Those who are unaware of what the goal of life is or how they can achieve the goal through things they do, understandably, cannot achieve the goal of life.