And ice cream consumption is correlated with drowning. Many times correlation just doesn't mean that much by itself.
It also correlates with serial killers, because turns out no one likes to do their hobby in poor weather.
As an example for coffee consumption it could just be that coffee is consumed more in countries with higher living standards and higher living standards lead to longer life. Coffee might not necessarily be healthy by itself, though of course it could very well be.