Ever wonder why you sometimes wake up just before the alarm goes off?