To determine what mineral it is. For example calcite and quartz might look very similar at times, and if you don't have acid with you then licking it is another way to go. Also, in the case of rocks, sometimes it's done to determine the "texture" of it.
.
^ this is coming from a geology major.