The beauty of life is that meaning and purpose are not given to you. You have to find them.
It’s not what happens to you, but how you react to it that matters.
Epictetus
We can not always control the results of what happens but we can control our actions and our reactions to the results.
If you do not know why you are doing something then re-evaluate and find your motivation.