I recently found myself wondering why the affinity for spirituality is such a robust source of optimism, and I came to the conclusion: because it means believing in something intangible. It can therefore provide reason for optimism even when, subjectively, there is none. ;-)
Health, fitness, success, social relationships – all of these are potentially transient. But you can always believe in God, regardless of the objective situation.