What is a dream? A message from the future or the forgotten past, memories that disturb the mind and occupy the whole head with thoughts of... Maybe just experiences? Or maybe they're desires? Why are dreams as they are? A dream after all is a life you are experiencing somewhere in a parallel universe, as scary dreams are replaced by fun, pleasant, funny and so on. A kind of full-length movie that you really want to finish watching if you suddenly wake up unexpectedly. Why are such "movies" then copied into reality, when waking up, you can not understand what was with you - you have just experienced again what once was already there.
It is impossible to understand the purpose of dreams unambiguously, as it seems to me. But to a large extent, they are a hint, a "wake-up call" about what might happen. I remember having the same unpleasant dream for several years in a row, consisting of a few seconds... and after September 30, 2011, I never saw it again.