Many extrusive volcanic rocks contain holes which have formed from:
underwater eruptions
acidic reactions
quartz crystals
escaping gases