The average sleep cycle is 1hr30mins. I think when we sleep for 6 hours, we complete 4 sleep cycles and wake up refreshed. When we sleep for 7 hours, we wake up mid-cycle. At ~8 hours, we wake up before we get stuck into the middle of a sleep cycle or enter REM.
I read this somewhere online, someone who knows more can verify if this is the actual science. If not, it's a fun hypothesis I'll choose to believe :p