It’s part of a bigger effort by the nation’s largest retailer to capitalize on the high-frequency pet category.