Welcome to a new world.
We spend about 1/3 of our lives asleep. Our bodies need rest to recuperate, but our mind is quite active during sleep cycles. We dream.
No one really knows! There are many theories, the most popular being that our brain uses sleep time to process the day’s events, but why we dream is often debated.