Amphibians explore and migrate during cool moist weather. They can cover a lot of distance that way, especially if they can find damp places to take shelter in between stages of their journey.
Most animals (including us) are also perfectly capable of smelling water from a good distance. Wind blowing across a body of water will have more moisture in its air than the surrounding air. An exploring frog that smells water on the wind will likely come to check it out.
People are explaining how animals can sense water, but another thing to think about is how many animals just die. If frogs from a pond head in several different directions, some will find new water and others will just die, either from dehydration or from predation/accidents along the way.
This kind of reminds me of the relatively frequent question about how animals manage to eat raw meat or drink stagnant water without dying, while humans can’t. And the answer is that many of them do die, and that humans could do the same if we were willing to have a much higher mortality rate.
I heard it’s because of birds too. They walk/swim through water and might get some eggs stuck on their legs. Then when they visit your pond, they might lose some. Eggs hatch and you have toads and frogs.
Also some of your neighbours might have a pond too so they might not have migrated that far at all.