When we think about the purpose of Life, there is an element of 'reverse engineering' - by which we try to infer the function from its nature. This, in turn, involves a basic decision about whether this world is - on the whole - the way God wants it; or else a failure.
If we regard this world as the way God wants it; then I think we are forced to recognise that Life is essentially and for everybody about incarnation and death: that is, about being born in a body and dying, because these are the only things that everybody does.
Most humans throughout history have, indeed, done this only, and not much more - because most people have died in the womb, during or shortly after birth.
If the world is well-designed for divine purpose, then this brief life must be sufficient (in general) - for those people who experience such lives.
Beyond the general meaning/ purpose of incarnation and death? Well, each and every life is different - and often very different indeed.
Aside from the differences due to being born in different times and places, and to different parents (or without one or both parents); every life differs in smaller but important details to do with family, friends, people around us, jobs, children, events, health...
So; it seems that - in such a world as actually is - each individual life, if it is meaningful, must be uniquely tailored to the needs of each individual.
In sum, we have two levels of meaning and purpose in our lives; that which is general and universal; and that which is utterly our own.
The first we can know, the second we can also know - but, because there are seven billion current lives, and similarly vast numbers in the past - we can know the specifics, if at all, then very-probably only for our-own-selves.
What we cannot know is the specific personal meaning of Life for all other people, especially for people we don't know, have never met, and don't love (people we know about only via the mass media, or gossip).
So when we are asked the question of 'why' does such and such a specific-thing happen-to a specific-person, at a specific-time... some-body drawn as an example from the seven billion unique lives some-place... this is nearly-always an unanswerable question.