Such dreams often recur. The dreamer finds themselves in a seemingly familiar environment. Sometimes, the scenes in the dream may feel like places you have never been to in reality, but they appear repeatedly in the dream.
These dreams are often distortions of certain experiences from childhood that left a deep impression in your subconscious. They could be pleasant experiences or sad ones, depending on your emotions when you dream of this environment.
If it's the former, and you feel physically and mentally joyful and relaxed in the dream environment, it is a re-enactment of a pleasant experience and a form of self-relaxation. If it's the latter, it is a release of past anxieties. In either case, it is a beneficial self-regulation of the body.
When people fall asleep, their responses to some routine stimuli become exceptionally slow. However, certain subtle stimuli that are not easily noticeable during the day can become stronger signals at this time, transmitted to the cerebral cortex, and amplified in some active areas.
Having such dreams is often the result of subtle signals from the external environment during the day or while asleep being amplified in the dream, thus invoking an important memory buried in the subconscious.
In reality, this memory may have already become vague or even forgotten in your consciousness, and what appears in the dream is a distorted form processed by the subconscious. Therefore, in the dream, you may feel that the environment, people, and events you dream of are 'familiar.' You have not been there, but it feels familiar; you do not know them, yet you feel like you have seen them somewhere.