I've never had children run up to me, jump up and smearing me with mud or scratching me while I've been out running. The same can't be said for dogs.
DS1 doesn't need teaching about not approaching dogs. He wants to avoid dogs having been scared at a young age from raided picnics, noses getting into his face in the push chair and being bowled over. As a teenager being bigger than dogs, he's now calmed to standing still until the uninvited dog buggers off. As a younger child, it was bloody hard trying to coach him to calm his reaction with the dog fussing and the owner (if present) trilling the inevitable "it's OK! He's friendly!" DS very clearly was not friendly with dogs. I've come to the conclusion that this type of owner is shit at training because they can't even recognise basic emotions in their own species.
DS2 wants to like dogs but is nervous after the picnics/ bowling over etc. If a dog is calm, he does manage to ask owners before approaching, but he's still easily startled by dogs bolting around.
My children have never jumped up at random people walking around in public, or stolen their food.
A couple of months ago I pointed out to an owner that he was breaking the law when his barking dog terrified a woman onto a bench. He was slow to recall the dog and then didn't bother to use the lead around his neck. He grudgingly decided to humour me after I pointed out that the dog was meeting the legal definition of being out of control and put the dog on the lead for a minute to shut me up and distracting him from his headphones. Naturally the dog was off-lead when I saw him a few minutes later.
Over the years I've had owners tell me that I'm scaring their dog that jumped up at me 3x because I've told it to get down, and blame me for taking my child to a public nature reserve "dog walking woods" when their dog jumped up and winded my child making him cry. Plus the ones oblivious to jumping and scratching or grazing me with their teeth. And that's just the owners in sight.
I've never had these issues with random children!