Sodium carbonate is added to the reaction mixture to create an alkaline environment by increasing the pH of the solution. This alkaline pH is necessary to facilitate the reaction between the phenolic compounds and the Folin-Ciocalteu's reagent. In an alkaline medium, the color reaction between Folin-Ciocalteu's reagent and phenolic compounds occurs efficiently.