Stop in for a cup of coffee

Morning!
Trying to rain here.
Rough night is an understatement.
Why would coffee cause the pain to taper off? Seems to every morning.