This was described by Carl Jung as a dream to make up for a lack in our lives.
The content may be very mundane or deeply emotional.
Sometimes a dream which exaggerates a condition in the dreamer’s life is the inner psyche’s way of drawing attention to a personal aspect out of balance.
As an example, the fantasy-filled sexual dreams of a repressed man whose mother imposed a Victorian mindset in regard to natural physical functions could be the inner psyche’s way of urging the man to seek a healthier and more balanced outlook. Another example might be for a person suffering from anorexia to dream of eating piles of food. The dream is revealing the person’s need for nourishment on both physical and psychological levels as well as the need to restore balance in the inner and outer selves.
Compensatory dreams can be helpful in helping you pay attention to what you need. If the need can be met, do so as long it brings harm to no one. Also, pay attention to keeping your life in balance and avoiding similar predicaments.
If the need cannot be met, allow yourself to receive this symbolic nurturing,
so long as it would not bring harm to anyone if it were carried out in waking life.
Note that the dream may also be conveying some need psychological and spiritual nurturing, so you could pursue that course.
If you reflect on the dream and the people who appear in them, they will often tell you what you need, but you must ask them. Reflecting on a dream can put you back in the mindset of dreaming and will continue on its own for you.