Manufacturers just grow giant pools of red algae where they wash, boil and dry it until all that's left, is the carrageenan starch which is ground into flour.
So citric acid is mass-produced much like xanthan gum and carrageenan are, but instead of being pooped out by bacteria, or mulched out of seaweed, it's excreted by mold.