The main reason they make holes is just to have a pathway to the other side of the comb. Often but not always these holes are started by some damage to the comb done by the beekeeper then the bees decide to continue it as a hole.