There are all kinds of possibilities and theoretical explanations. Here is a brand new one. Perhaps the persistence of "monsters" in the subconscious, or dream state, is a perceptual attempt to metaphorize brain physiology, for instance perhaps monsters that one battles with, are actually chemical compounds or waste products that the brain is breaking down into excretable components. To accomplish this requires some component of the chemistry of anxiety. The human brain, always anxious to explain things, or using a shortcut, comes up with a handy scenario that creates a certain necessary neurochemistry. Since the brain is such a glucose addict, perhaps dreams, fraught with anxiety, are a way to get the liver to kick out some glucose in the middle of the night when we are generally not involved in high energy metabolism.