Dentists are highly trained medical professionals who can often tell a lot about a person's overall health simply by examining their teeth and gums. This is because the mouth is a window to the body, and many systemic diseases can manifest themselves in oral symptoms. For example, diabetes can cause dry mouth and gum disease, while HIV/AIDS can lead to oral thrush and Kaposi's sarcoma.
In addition to diagnosing medical conditions, dentists can also tell a lot about a person's lifestyle habits. For example, smokers tend to have more stained teeth and gum disease, while people who drink a lot of sugary drinks are more likely to develop cavities.