People have dreams because the brain stays active during sleep, especially in the REM (Rapid Eye Movement) stage. Dreams help process emotions, store memories, and sort out thoughts. Some scientists believe dreams are the brain's way of solving problems or expressing hidden feelings.