Citric acid is used as a pH adjuster. It also improves the flavor of the product by adding tartness.