It's the same as whenever someone has a dream that they swear comes true. More likely, their dream was totally ambiguous, but their brain asserts itself and makes the dream into something you can understand.