Bicarbonate is not carbon dioxide. In acidic conditions, bicarbonate will be protonated to form carbonic acid which in turn decomposes into carbon dioxide and water. The overall result is the removal of a proton (ie increase in pH) and formation of carbon dioxide (which accounts for the rapid breathing). The idea behind giving bicarbonate is that it will replenish the buffer.