When you dream, your perceptual (and other) competence is affected. You are then unable to get it right competently with the beliefs in your dream.