I’ve also seen it related to precognitive dreams. Personally I was seeing a couple of episodes a week when I was in 5th-8th grade. I started writing the dreams down to make sure I wasn’t just confused or just doing something similar. They were always everyday things - nothing big.
The strongest after I started writing them down, was walking into 6th grade and talking with 3 of my friends before class - we always sat on the heater in the classroom and chatted for that last few minutes. Got back to my desk and pulled out my notebook - everything we’d just said was verbatim. I didn’t freak out about it, just kinda said - well at least I’m not crazy crazy. Still get it once in a while, but not nearly as much anymore.
I used to get some pretty accurate dreams as a kid - usually in sports when I was visualizing myself in the race while training. Even to the point of dreaming of what place I would win (correctly). And sometimes on really mundane things.
It doesn’t happen too much anymore with big things, although lots of things through the day can trigger remembering a dream.
I wonder if we dream about 100 things every night, and then when the one or two things happen that sort-of fit they trigger the memory.
Obviously not the detailed dream like you described, but the truck crossing your path a bit close and “hey - I had a dream with a truck!”