Good analogy, but I think it might have something to do with sitting at a computer all day and not getting enough exercise and having a shitty diet. Myself included, sometimes.
I agree, emphasis needs to be put on 'sitting at the computer'. I cycle 300km a week, am married to a dietician, and take medication but I still suffer severe depression.
Exercise in a way that your muscles would hurt. It will at least lessen depression because of lactic acid that gets to the brain.