I started realizing that when I feel down and discouraged, often the cause is simply being tired and not sleeping enough. I’d drink more coffee/caffeine to compensate, making me sleep even worse. It’s a bad cycle. But a sufficiently tough workout cancels out the over-caffeination and makes it easy to fall asleep at night.