It's one of the most commonly used thickeners and emulsion stabilizers. If the product is too runny, a little of xanthan gum will make it more gel-like. Used alone, it can make the formula sticky and it is a good team player so it is usually combined with other thickeners and so-called rheology modifiers (helper ingredients that adjust the flow and thus the feel of the formula).
Btw, Xanthan gum is all natural, a chain of sugar molecules (polysaccharide) produced from individual sugar molecules (glucose and sucrose) via fermentation. It’s approved by Ecocert and also used in the food industry (E415).