“Dogs are pets” is one of those cultural background assumptions that can be pretty jarring when you realize it’s not a universally held belief. There are pretty large chunks of the planet where dogs are mostly unwanted pests at best.
Muslims use dogs as pets, so it's not argument here.
It’s not a religious thing, it’s a geographic thing. Wild dogs are a serious problem in some areas, and whether or not dogs are viewed as common pets varies wildly. To pick one example, a mere 16 million homes in India have a dog, and that is up a lot over the past decade. Compare that to the 63 million homes with dogs in the US, a much smaller country by population.