The answer is withdrawal
Coffee is one of drink that contains caffeine. Caffeine is a substance that could affect the central nervous system and act as a stimulant. If their consumption is stopped abruptly, it will induce a withdrawal effect. One of the symptoms of the withdrawal is headache.