My specific issue and what the regulations speak to, is that the fence isn't supposed to start at ground level, so it would be above the height of children and dogs if they get close. The dog in question got trapped behind the electric fence and the wall and couldn't escape so it was being shocked repeatedly. Same issue with neighbours cats that have gotten caught as the level of the ground fluctuates and they enter at one point and get trapped in another.
the electric fence can be ok if touched once with their body covered by fur, but dangerous if exposed to mouth or tongue (dogs specifically here) or shocked repeatedly without escape. I've pulled enough dead birds off electric fences to know it can kill in a loop if animals get caught or cats, or just generally unlucky with weak hearts/age.
TL;DR Would just prefer electric fences to be higher off the ground, but I suppose homeowners will need to make it harder for thieves to burrow under the fence or not use palisade fences at all.