Mouth guard thigys...?

hey ive noticed when in watching the MLB on tv and i see that pitchers are wearing things in there mouths, what are they? and why do they use them?