http://www.smoothsearcher.com/why-do-people-drea...
We do know that a dream happens when someone goes into a deep sleep where the brain displays theta brainwaves. The conscious mind may remain inactive during sleep but the subconscious mind is far from inactive. During dreams a person will show this by displaying REM or rapid eye movement.
So why do people dream?