Here's why:
* Metaphor: A metaphor directly compares two things without using "like" or "as". In this case, "holding your tongue" is a figurative way of saying you learned to stop talking.
* Simile: A simile compares two things using "like" or "as."
Let me know if you have any other phrases you'd like to analyze!