Why do People have Deja Vu?

Currently, modern science doesn’t have an explanation for deja vu. It is a very interesting phenominon though, where a person thinks they have been in the exact same situation they are in at that time, and they can remember details about how that situation actually played out. I do know that this used to happen to me a lot as a child.