Why do we dream?

Why do we dream when we sleep? No one has yet been able to solve the mystery as to why we dream. There have been different theories about why we do dream and we can actually look at the question in two ways: psychologically and physiologically.