If we look at the process in a natural sense, perhaps we can talk about it in terms of adaption/evolution.
Life kicks your ass; your shakey and unsure. You lose the foundations that make you strong.
Philosophy or religion seen in this sense offers tools to understand the ass kicking we receive. Gives us a hermeneutic lens to possibly even change our perception of the kicking, allowing us to strengthen our foundations once more.
Art can serve a similar purpose. Appreciate the aesthetic in life and you can see the beauty in the ass-kicking. Similar to what that .gif illustrates.
This allows us to kick back, internally. We change our interpretation of events, even past events, and we in effect have scope to change the event itself. Or at least, mitigate its affect.