Pun on "heal" and "heel", which sound the same. Veterinarians medically treat animals, or heal them, and "heel" is a common command to train dogs to obey.
The veterinarian had a great deal of trouble getting his dog to heel .