It's a finishing touches kinda thing. Pants that hang at just the right height so they drape over the shoes nicely, aren't too long that you wear out the hem or when you sit your socks are hanging out, making sure your shoulders don't look boxy, achieving a more fitted look or one that is still relaxed but doesn't make you look bigger than you are. Stuff like that. Like, I'm sure you have a pair of pants that you feel both is comfortable and is more flattering on you because of whatever particular design they use vs their competitors. If you have something tailored or can tailor it yourself, you can make other things fit that same way. It's just a going the extra mile thing. Have a wedding, job interview, first date, etc and want to make an extra good impression, it will give you those extra few appeal points.

Here's a before/after of shortening the hem and tapering the legs. The legs look slimmer and the pants don't bunch up at the bottom. I'm pretty positive most people would say they look better afterwards.
But many times you can go the other direction too! Have a pair of pants you love but you may have added an inch to your waistline? If there is enough material, they can be let out so they fit good again. A snug leg may be able to be let out. If your a lady and don't want to wear shapewear, a little slack put in some seams can avoid that bunching where you don't want it.
So yeah, it's not mandatory, and with how cheap many clothes are today there isn't always as much extra fabric to make all these adjustments sometimes or it doesn't pay to have something altered if you can't do it for free. It may be cheaper and easier to just buy something else. But it can absolutely make clothes you like often look even better, especially for people who aren't a "standard" body type that clothes are designed for.