A recent study indicates that the
evolutionary reason for depression is that we feel depression when we realize a goal is unobtainable. Being depressed convinces us to abandon an unreachable goal, during the depressed phase, we conserve energy and devise a new goal, and then we can put our stored energy to good use pursuing the new goal.