*Some* volcanic rocks have holes, but others don't. The quick answer is that the holes are where air escaped as the rock was cooling; the rock "froze" after the bubble of air burst out. The two main types of "holey" volcanic rocks are "pumice" and...