I don't know what you'll make of this article, but it tries to give an alternative explanation to the cause of endogenous depression.
The True Cause of Depression | Psychology Today
You should not feel guilty for being unwell. Depression is like any other illness in which we have no control over our developing it. Remember, it causes profound changes in our thinking and perception of the world, including making us feel guilty.