Well, these guys do, apparently.
There's a tendency in fantasy to have certain species or characters, especially stone-based ones, eat earthen materials. Often, this extends to having their entire diet consists of these things, and they're unable to digest pure organic matter. Analogies to actual human food may be drawn as well: nitrogen-rich soil may be especially tasty, for instance. Gemstones may be considered rare delicacies, quartz may clog arteries and rust means that its spoiled.
How they get their nutrition from eating such materials is never explained, but presumably, if they're different enough to find rocks tasty, their nutritional needs are far different from ours.
The dragons in the Age of Fire series. Justified as eating metals is what makes their scales so strong, and failure to do so regularly is equivalent of vitamin deficiencies. In fact, AuRon is special for averting this, as he is a rare scaleless dragon and so doesn't need to eat any, allowing to live far from the hominids who mine the stuff.
In the Tortall Universe, basilisks eat rock, which is why they turn their prey into stone. They regard some types of rock as more edible than others, and certain gemstones qualify as "dessert".
The inhabitants of Halut in the Perry Rhodan universe (distant descendants of genetically engineered alien super soldiers who rebelled against their creators) are technically more extreme omnivores, but one of them taking a quick bite out of a convenient piece of rock when nothing else is immediately handy is certainly not an uncommon sight.
In Prehistoric Park, much to the annoyance of the park staff, Titanosaurs are able to consume whole trees and thatched huts, but they prefer rocks. Justified in that the rocks allow their digestive system to crush the massive quantities of fibre they consume, easing indigestion; they can't dig except by uprooting trees, so finding an appetizing rock is not as easy as one might expect.
The aurumvorax, an eight-legged wolverine-like animal that eats metals and ores, but has a special affinity for gold.
According to Spelljammer, this is actually the natural diet of tarrasques. The more familiar all-devouring, all-destroying monsters are all just homicidally insane — most planetary atmospheres don't agree with them.
Rust monsters subsist on rust, which they can create by touching any kind of metal. Their cousins, the folugubs, can liquefy crystals at a touch and feed on the result.
Some kinds of HostArmor in Splicers can be Lithovorous, which makes them easy to maintain in the field. It also makes the ammunition for any Casting Guns especially hard.
At least one kind of War Mount, the Tunnel Rat, is lithovorous, too. The fact that they spend a lot of time digging through the earth anyway means they're basically the easiest War Mount to feed every day.
Gorons in The Legend of Zelda series have been mentioned to eat mostly rocks; one Goron describes his race as the "stone-eating people from the mountain." But they don't just eat any rocks (they're stated to be starving while living in a giant cavern, after all), they can only eat the rocks in the neighboring dungeon. Presumably these guys are connoisseurs.
Yes, actually. One Goron says they've become such gourmets that other rocks may as well turn to ash in their mouths, for all the satisfaction they get from eating them.
Later games add some other mineral-based meals for Gorons, usually as a part of sidequests: one game has you delivering a rock sirloin (a hunk of rock that resembles Cartoon Meat) to a stranded Goron while another has you delivering a bowl of lava soup to a sick Biggoron. They also like to eat amber, even if it has fossilized bugs inside it.
Final Fantasy I had a talking stone giant blocking the path to get to the Earth Cave. He wants a tasty ruby to munch on.
The Licensed Game of Blazing Dragons had the title characters eating various gems. Flicker also has to eat a piece of coal to gain his fire breath ability for a moment.
Boki of Copy Kitty is from a race of cat people that eat crystals. Her favorite is emerald. This information explains why she can claw her way through terrain: in her natural habitat (caves), she would have to be an excellent digger to get at those crystals.
In My Little Pony: Friendship Is Magic, Spike is an Extreme Omnivore, but seems to prefer gemstones over anything else (luckily for him, gems in that universe are extremely common and, with a few exceptions, are less valuable than fool's gold). The gemstones thing appears to extend to other dragons in the series as well.
Pinkie's sister Maud chooses and eats a rock from a basket of muffins at one point and has taught Pinkie the family's rock candy recipe - which uses rocks as the key ingredient.
Meatwad eats Sand-Cakes at Shake's insistence. Subverted, as he knows it tastes terrible, there's no nutritional value and it'll probably kill him. Meatwad's just that stupid.
Dragons eat limestone in The Flight of Dragons and will swallow gemstones to help digest them, much like birds eat grit to grind their food. Said limestone produces the gasses necessary for them to fly and breathe fire.
In the The Ren & Stimpy Show episode "The Royal Canadian Kilted Yaksmen", the eponymous duo are stranded in the wilderness and slowly starving to death when Ren hits upon an idea. What, he asks his compatriot, is "Canadia"'s most abundant natural resource? "Dirt?" asks Stimpy hesitantly. "Yes!" replies Ren triumphantly. "We'll eat dirt!" It goes better than you'd expect.
Earthworms. However, they don't actually get nourishment from eating dirt, it's just how they travel. What they eat is decaying organic material.
Otherwise known as "dirt."
There's a disorder known as Pica that causes people to crave and eat things that aren't normal food; often, this is dirt or rocks.
Many animals have stomach-like organs known as gizzards, which lack the powerful acids that true stomachs have to break down food. For this reason, many creatures with gizzards swallow stones (known as gastroliths) to help crush the food in the gizzard. As a side-note to Harry Potter fans, this is why bezoars can be found in the stomach of a goat.
Most bird and several reptile species have gizzards. This is why ostriches supposedly eat diamonds. In practice, they just like to eat hard stones for their gizzards and diamonds just happen to be shiny hard stones for them.
Certain minerals of a "stone-like" nature can be consumed for medicinal purposes in Chinese herbal medicine, but only in small dosages which are boiled for hours. One such mineral, Gypsum (or, in TCM: Shi Gao), can notably be purchased in large quantities from the Home Depot, as it is mostly used as drywall.
Eating small amounts of clay is a surprisingly-common habit for people in subsistence cultures, who don't receive a full daily supply of minerals from their usual diet. It's particularly common in pregnant women, who really need those minerals.
Eating powdered clay is also an efficient remedy to relieve diarrhea and soothe stomach pains caused by an excess of digestive acids. It was once the active ingredient in Kaopectate stomach medicine.
All humans, and most other animals, have a biological need to consume at least one type of naturally-occurring mineral: salt.
San Pellegrino sparkling mineral water. The bubbles are natural, a result of a mineral called calcium carbonate. This also gives it a...unique flavor. It's very popular in Europe.