People drink coffee (consume caffeine) because they wish to be more alert/are sleepy. This is a consequence of not getting enough sleep. Lack of sleep has many documented negative effects, but people trade sleep (health) for productivity/etc. via caffeine intake.