Why is it that at 3:00 PM I am so tired I can barely keep my eyes open, but if I force myself to train I will be up till 1:00 AM?

Why can't this amount of energy be avalaible to me during the day when i NEED it, and not be when I need to sleep?