A horse's teeth are a good indicator of its age. Hence, St. Jerome (A.D. 400), who never accepted payment for his writings, penned the famous adage "Never inspect the teeth of a gift horse," which became the more familiar "Never look a gift horse in the mouth."
(source)