Dogs have to be properly trained and socialised. So do children. It’s a parent’s responsibility to bring up their child to be a decent member of society rather than a feral pest with no respect for people or property. Likewise with dogs.
Children need to be socialised in order to be a part of human society - they are small humans.
Dogs are not - they are wild animals with no desire whatsoever to be socialised. And over and over again we see that they cannot be - they slobber all over people, jump up, knock people over (with risk of causing serious injury), defaecate indiscriminately, growl at people, bark incessantly - and every now and again they kill someone. In other words they behave like wild animals - can this be a surprise? They do not do socialising - there may be a veneer of socialisation, but underneath they are wild animals and totally unpredictable.
If, for some reason, people want to keep dogs, then let them keep them privately; out of the reach of others where they cannot cause problems to the rest of us.
Someone is going to leap in here and say that would be cruel as dogs need to be walked and to be out and about. Indeed so - it would be cruel. But, in my view, there is cruelty in keeping dogs at all - in trying to mould them into something they are not; wielding our relative power over them for our own purposes; trying to change their natures. What the heck is that about? I just do not get it - which is, fine, so be it. But the problem arises when the dogs cause problems to humankind. There is no other situation in which one human is allowed to do something to another that causes distress and danger to them and a blind eye is turned.
If I was walking through town and someone decided to jump on me and knock me over, or to spit all over me, or to wipe mud all over my clothes they would be in trouble, and rightly so. And yet someone can allow their dog to do that and ..... guess what? "He is just being friendly"
Dogs are dogs not surrogate humans. Why should society in general have to put up with their wild ways just to keep dog-owners happy?