A dentist may recommend a visit to a periodontist if they suspect that the patient has gum disease or if there are signs of inflammation, bleeding, or infections in the gums. A periodontist specializes in the treatment of gum diseases and can provide more specialized care and treatment options. It is important to follow through with the recommendation to prevent further complications and maintain good oral health.