While it's true that the CO2 dissolved in the liquid isn't, at that very moment, affecting the pressure in the headspace, the CO2 does constantly seek equilibrium between the liquid and the headspace. At equilibrium, more total CO2 in the system means more CO2 in the liquid and more CO2 in the headspace (thus higher pressure). Less CO2 in the system means less CO2 in the liquid and less CO2 in the headspace (thus lower pressure).