The first hours of our sleep are mainly deep sleep, with short periods of rem sleep.
The later hours of sleep are mostly rem sleep, with little deep sleep.
So if we sleep a little longer, we get a lot more rem sleep.
A brain in rem sleep is very active. Except for the logic centers of our brain: they take a back seat.
This makes dreams unlimited, with connections we might not make during the day.