Not all caves have easily accessible entrances. It is possible to fall in a hole and become trapped in a cave, unable to climb out. Without a mage's Teleport ability, one would have to blast a way out with Bombs or let oneself be killed by a mob.
Sometimes, the bombs can also be used to open a path through the cave, which may be interrupted by a randomly generated boulder. Those boulders may contain hidden ore deposits.