In my view (animal) knowledge is apt belief, where not only the belief (its existence and content) but also its correctness is creditable to the subject's competence.
Through our perceptual systems, we represent our surroundings, aiming to do so accurately, where the aiming is functional or teleological, rather than intentional. And the same goes for our functional beliefs. Through our judgments, however, we do intentionally, even consciously, attempt to get it right.
We need some standard that will determine how likely a belief is to be true given just that it is stored in one of us, including strangers that one can ask for directions, and with whom one might collaborate.
The correctness of much testimonially based belief is no more than minimally creditable to the believer.
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.