Sugar or Dextrose is added to beer (bottle or mini keg) and then sealed. Fermentation kicks off again as the yeast eats the new sugar. When yeast ferments, it releases CO2 which is then absorbed into the liquid.