Added 1 minute later
you can wake up, then fall asleep again and lie there for a while longer, catching up on sleep, and that's often when it happens. Or when something prevents you from sleeping normally in the morning, for example, light from the window (it bothers me) or something else. In principle, you can also think about something in such a dream, plan something.