Most soft drinks are made using flavor extracts. Root beer was originally made by pharmacy and snake oil salesmen using herbs and roots by pharmacy not always safe for human consumption.

Homemade Root Beer can be Ready to Drink in as Little as Three Weeks.