It used to be very simple.

If you lived in “the country” (that is, “not London”), you had a dog. If you lived in London, it was considered almost cruel to keep a dog.