Something must have touched you and reminded you of dogs. Note that this thinking process is very fast, first affirming and then denying, that is, the subconscious wants the dog back but the realistic consciousness denies this possibility. The repressed subconscious will come true in dreams.
This is just my opinion, but many dreams are caused by similar reasons.
As for the problem that some dreams can predict the future, I think it is almost impossible that only the subconscious wishes will come true in the future, because the consciousness in reality is still relatively objective and accurate.