Coffee (caffeine) is a stimulant. It's helpful for a lot of things that are routinely treated with stimulants.
In my case, that generally means respiratory issues and allergies.
People who drink a lot of coffee are probably self-medicating for something or other, possibly without realizing it. My coffee consumption always goes up when I'm exposed to more allergens. When it goes down, it's because I'm feeling better, not because I have self discipline.