In my opinion no one knows, so take everyone's theories (including mine) with a grain of salt.
I think it's a lot of things. Diet (caffeine, allergens, etc), stress, tension (neck, TMJ), exposure to sounds/frequencies during the day, the fact that it's now quiet at night and your brain turns...