Barring depression psychosis, most people retain some capacity to get out of bed and semi-function albeit poorly even if it's to self medicate. The core problem of all forms of depression is recognizing then treating it. A smiling depressive is hiding it better from others but the factors are largely the same.