"During REM sleep, a person's brain activity, breathing, heart rate, and blood pressure increase, and the eyes move rapidly while closed. The muscles in the arms and legs become temporarily unable to move. REM sleep is thought to play an important role in memory and learning."
https://en.wikipedia.org/wiki/Rapid_eye_movement_sleep