Google for a more complete answer.

They are gathering samples of the things around them and bringing them into their mouth for examination. Much like a dog sniffing around.