9pm coffee craving

I tend to drink tea consistently throughout the day, and drink a pot of coffee 2 hours before I go to bed. I want some answers to this ridiculous behavior.