But how do you get the energy and motivation for constant learning and self-development when you struggle to get out of bed every day, or are burnt out on tech altogether?
Even if, against all odds, a depressed person manages to get a job, it's likely that doing it will feel meaningless and overwhelming, leading to a struggle not to quit, poor performance, and possibly firing.
If you screw up at work because of depression, of course you're not going to make a good impression on your colleagues, making getting hired or recommended by them in the future even less likely.
If one is out of work for extended periods of time, not only is that a drain on your savings, but also an economic drain on whoever helps you (whether that's family, friends, or society).
Then there are the secondary economic effects of all that lost productivity that the depressed person could have contributed to the economy but didn't because of their depression. All of the deals that could have happened, all of the innovation that was missed, the people that they might have inspired, etc, have economic consequences that are difficult to quantify but that are real nevertheless.
This doesn't even go in to the potentially drastic economic consequences of suicide, both to the family of the person who takes their life who might have been relying on them for sustenance, and because of the knock-on economic effects of depression and trauma of those affected.