Carbon dioxide is used in the soda. It comes in the form of the fizz that bubbles up when a can of soda of opened. It is added because dissolved carbon dioxide is carbonic acid, which adds a pleasantly acidic flavor and an interesting mouth-feel. When it's not present, the drink tastes flat.