Some people (archaeologists) have found fragments of a papyrus that was a medical textbook from somewhere around 1850 BC, indicating that Egyptians were familiar with the anatomy of animals, could recognize early warning signs of certain diseases in dogs, birds, fish and cattle, and used specific treatments to deal with them.
The Romans, Greeks, Babylonians, Hindus, Arabs and Hebrews also practiced animal medicine.
A man named Urlugaledinna, who lived in Mesopotamia in 3000 BC, was considered an expert in his ability to heal animals. Which indicates that being able to heal animals has been around a while.
https://www.canidae.com/blog/2014/11/a-quick-history-of-veterinary-medicine/