CO2 is dissolved into the liquid of the beer as a liquid under certain pressure temp. Generally during fermentation, the yeast release the liquid form directly into the beer and some will stay in that form and some will collect into bubbles and rise to the surface.
Temperature can affect how much of this CO2 can remain "in solution" (in liquid form) and how much is released as gas.
During fermentation the CO2 is added to the beer and it takes a bit for it all to come out of solution and be released as a gas. The warmer the temp, the more readily the CO2 will come out of solution. So if the beer was a bit chilly, then allowed to warm up, you will get more bubbles as the CO2 is released as gas.
That is why people often like to put the kegs in the fridge to carb. Cold beer will absorb the CO2 from the tank faster that way, and why warm beer foams so much more.