Yeah, having dog treats for dogs off leashes seemed pretty weird. I wonder how often that kind of thing happens? There’s a running and bike trail that I go to often, and see many dogs being walked. They always have leashes.
https://www.preventivevet.com/dogs/what-to-do-when-approached-by-an-off-leash-dog
...3. Throw treats at the dog as a distraction. If a dog is approaching rapidly you can even throw the treats directly at their face to break their focus. While they are searching for the treats on the ground, you have time to get away with your dog. Patricia McConnell shows this treat tossing technique in this video: