Because people are incredibly irresponsible when it comes to pets and most countries don't want to invest time into he-said/she-said issues.
For dogs in particular, the issue is almost always a lack of attention, a lack of discipline and/or a lack of awareness. People picking up needy family dogs then leaving them alone for 12 hours, anxiety, boredom, letting dogs decide when they are allowed to bark.
Worst, dogs are quickly taught that barking works as long as it is loud enough. So eventually these dogs start having a competition to bark loud enough it penetrates your walls. And those with separation anxiety will do it while the owners aren't home, leaving them out of the mess.
I really like dogs but the far majority of people just can't handle an easy-going breed, let alone something far needier in any sense.