Immediate thought? "That's ridiculous."
I sort of understand their thought process but people gamble ALL the time with choices. The biggest gamble that most people take? Insurance. They put their money into insurance in case something will happen and they will need that insurance to help them out - hoping that the money they shovel away to the insurance company will be worth it should something happen one day. BUT WHY GAMBLE?! Well, because the odds are pretty good that your insurance WILL be worth it one day. When the odds are in your favor that it will pay out one day, go ahead - put your chips in.
That said, how severe is the gambling risk with having a dog that might get you evicted for barking? If somebody is literally going to get evicted from one place and have NOWHERE to live and be out of their ass because the dog is barking, then yes, I agree. In THAT situation nobody should do anything that could leave them completely and utterly homeless.
But realistically, most people are not in a situation where if they get evicted they will literally be homeless. They have friends who will take them in, family, somebody who will put them and/or their pet up until they can arrange another living situation. And MOST dogs are not going to be problem barkers, either. So with those odds - okay, let's gamble.