Or on a roof/balcony. Living in Guadalajara, I've wanted to put many dogs out of their misery. Left on the roof as thief-deterrent to go completely crazy.
Our treatment of animals (pets, meat) is one of the indicators of how primitive we still are as a civilization... or, god forbid, species.
The fact that we keep animals as pets and use them as meat indicates that we are the superior species and by extension we are the most glorious civilization.
Why just getting stuck in apartment or home? Most of the pet dogs here (in the US) are spayed/neutered so they have no reproductive purpose left. They are basically just living toys for the amusement of the owners.
To some extent that's a matter of perspective and context. Keeping a Great Dane or even a Border Collie in a small apartment is a very different thing from keeping a Chihuahua in one.
For most people getting a Border Collie is really bad and just mean to the dog. These dogs are very smart and active and they lose their mind if they have nothing to do. They are working dogs, not pets.
It’s hard to draw a line. I would however support better treatment of farm animals and also make it more difficult for people to get pets. We foster dogs and I find it hard to understand how people can get a puppy for the kids for Christmas and then dump it a year later at a shelter it just at the roadside. As a society we should be much more respectful of animals but this raises a few very inconvenient questions that are hard to answer.