My understanding is that babies stick things in their mouths because their other senses aren't well developed, so their tongue is the best "scanner" they have.  They are just trying to learn about their world in spite of having poor vision, poor tactile information, etc.