They must have a nest nearby that they are defending. If you can walk on the opposite side of the road or move out of the area quickly, they may be less likely to swoop you, but otherwise it’s just a matter of waiting for them to finish nesting.
I guarantee there’s a nest. Wear a hat/helmet and try not to get too close, or just run like heck.