In dreams we are not subject to the constraints of time– of past, present and future– that we recognize in our waking lives.
We know from quantum physics that space and time are one in the same.
Therefore, in dreams we are not subject to the constraints of our space time continuum.