Why when I drink a lot of caffeine during the day I fall asleep early at night?

Crash. It's not uncommon to crash after too much caffeine. Your brain eventually metabolizes all the caffeine and now needs to rest. Also, your heart rate and BP have been elevated (usually not much, but to some extent) and your body perceives this as stress and a reason for rest.