That bacteria, more specifically P. shermani, releases carbon dioxide when it consumes the lactic acid and forms bubbles. The bubbles don't just disappear, they form little air pockets, resulting in the holes of the Swiss cheese..
Read More: http://www.huffingtonpost.com/2012/04/17/holes-in-swiss-cheese_n_1428707.html