It might also be the case that an over-excitation of certain brain regions leads to a change in receptor homeostasis, like the one presumed by Cortene.
Same issue. Masturbation, playing video games, exercising for long periods, mathematical calculations causes delayed sleep with body feeling tired but brain feeling fresh and ready to go. Seems to be some brain matter clearance issue.