Where Do Dreams Come From and Why?
Dreams come from your soul and are intended to help you progress along your life path. In sleep the focus of the physical world and the body is on hold and during this period your soul has a perfect opportunity to dialogue with your conscious mind... or so it would appear. The problem here is that the subconscious never sleeps.
Think of the subconscious like a faithful dog always on guard to protect its master. Your soul asks the conscious mind to make a change to some aspect of functioning in order to avoid a particular undesirable outcome. Let's take a very common example. Say your soul wants you to be less analytical / rational in your approach to life and to incorporate intuition / feelings into the decision making process. It dispatches a dream for this purpose. Ideally the dream is received and your conscious mind accepts the direction of your soul and begins a program to change in this direction. The more likely outcome, however, is that your subconscious mind asserts itself in the dream and provides all sorts of reasons why this change should be avoided. Due to this, the message / request in the dream is effectively spoiled.
Why does this happen? What gain does the subconscious make from this? The simple answer is that there is no gain but the subconscious still retains control in the area which was being addressed. The subconscious mind is being helpful as far as it is concerned and sees the reasons it provides for avoiding the change as valid. Drawing on your personal experience as evidence it will tell you "When you are open to your feelings you are open to being hurt, rejected and ignored. You'll end up sad and depressed." In this way it appears to protect you from reliving pain from the past.