The frog's tongue is like this because when the frog shoot's it's tongue out to catch an insect or bug.The tongue then is pulled back to pull the insect down it's throat so it doesn't have to chew them.So that is why the frog's tongue is anchored.
Hope this helps if you need anything else just ask