if you are ecstatic do you wonder what is the purpose of life? Do you? NO
when life is a burdensome then you ask what is the purpose of life, isnt it.
All questions that you get from burdensome ness, desperation, misery, dont answer them as they will give wrong answers from within and wrong answers from others.