There's a logic to dreams that doesn't necessarily follow linear narrative. You don't know why things happen, it's your subconscious pushing you, to give you information.
Justin Theroux Famously Quoted