This reminded me of a Scientific American article from nine years ago about the evolutionary roots of depression. It says that depression is a useful adaptation:
Dr. Stephen Ilardi from the University of Kansas takes the opposite position. In his book, The Depression Cure, he says that depression is a disease of modernity. "[O]ur bodies were never designed for the sleep-deprived, poorly nourished, frenzied pace of twenty-first century life."