A condition known as "pica" can drive people and animals to crave the oddest things.
Sometimes pica presents as an urge to lick metal or stone objects, and can be traced to some sort of mineral deficiency.
In other cases, the pica is related to obsessive/compulsive behavior.
It's important to stop the behavior.