Yes they do for 3 reasons
They stimulate saliva and washing away of debris from teeth and better cleansing of teeth
Mechanical cleansing by rubbing action during chewing cleanses the teeth of plaque
Most of the gums shave anti bacterial agents like xylitol or sorbitol that help reduce harmful bacterial count.