Here's why:
* Verb: A verb shows action or a state of being.
* "Like" expresses a state of being (I have a liking for swimming).
* "To swim" is an infinitive phrase acting as the object of the verb "like."
Let me know if you'd like to explore other examples!