That's very much a case of "working as intended". Most cases of depression aren't chronic, but can be self-perpetuating (low mood leads to a hard time fixing the things that make your mood low, which leads back to the low mood).
Anti-depressants can break that cycle long enough to let you get your stuff together to the point the cycle stays broken.