Holes in the cheese is also known as ‘eyes’. It is caused by some of the bacteria used in cheese production. Gas production is some of the cheese for eg. Swiss style cheese is typical.
In the late stage of cheese production the propionibacteria consumes the lactic acid and releases acetate, propionic acid and carbon dioxide.
Thus, the carbon dioxide while escaping form bubbles and develop holes or ‘eyes’.