Hi @oliviabu007
I’m afraid I don’t know the answer to this, but one theory is that it helps our brain to consolidate (reinforce) our memories. Which is why dreams can contain people and places that you know.
Have a look at some of the other answers to questions about dreams here:
Comments