The mine in Viva Piñata has a couple of uses. First, it's a great spot to collect gems and other goodies—just make sure you've got your helpers (like the mine's worker) in place to do the digging.
Second, it plays a part in a special quest: you'll need to bring a candy-smelling piñata wearing a gas mask down there to track down the rare Dragonache egg. So the mine is both a resource for treasure and a key location for one of the game's rarest creatures.