That form of the -ing word is called a gerund. It's a verb form that acts like a noun, or some may say, it's the noun form of a verb. When you have a sentence like "My favorite pastime is X" or "I like X" the X needs to be a noun, so the -ing gerunds are appropriate.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.