Dogs will often eat other's poop because they are lacking in nutrition, cat food is also very high in protein which is like dogs favorite thing! Esecinally the food they eat makes the dog think its delicious. Also for the smell of it, dogs are rooted back to being wild and to blend in with their surroundings they will roll in stinky stuff to not be detected by prey or bigger preditors