First thing to look at are your sleep/snooze/standby settings and see if there is a time limit.

Most likely possibility apart from that is you had a small power glitch and that rebooted it.