Before surgery, doctors inquire about teeth to prevent dental damage and assess the risk of infection or complications during intubation and anesthesia.