A hangover in its purest sense means “a thing left over from before.” But in 1904, the word became associated with drinking alcohol, and soon the world came to identify the word with feeling horrible the day after drinking.
Source: https://www.mercola.com/infographics/how-to-get-rid-of-hangover.htm