Every night, your brain becomes a movie director, creating wild stories just for you. But why do we dream at all?