Quillaia extract in root beer gives it a more decadent foam head.
It has been used as a foaming agent in root beer since the late 1890s, and while different brands use different ingredients, quillaia extract is still popular today as a root beer additive.
There have been safety concerns around its use since 1994.