Positive emotions broaden our awareness and encourage novel, varied, and exploratory thoughts and actions. Over time, this broadened behavioral repertoire builds skills and resources.
The past explains the present - that is the fundamental premise of evolutionary psychology.