From Business Insider: Depression may be an adaptation that serves a valuable purpose, not a disease or disorder.
“The basic concept is that what we think of as a disorder is actually a way our brains analyze and dwell on a problem in the hopes of coming up with a way to deal with it. The researchers suggest it’s possible that a difficult or complex problem triggers a ‘depressive’ reaction in some people that sends them into a sort of analytical mode.”