Programming is way closer to cleaning bathrooms or working the checkout line at the grocery store than most programmers are willing to admit. It's an endless slog to solve the same problems for the same companies over and over.
Your code really has no value without a business solution. A website or an app or some code is just an implementation detail, and it has no value by itself. It can lose value in an instant if something else comes around or the underlying problem that it set out to solve disappears.
There's nothing wrong with web development today. It's a tool for a job and it does its job.
I think a lot of developers have tunnel vision on what they actually do for a living. I don't really think it's the greatest gig. I think a lot of other corporate roles are more lucrative and easier. For example, fart out some business word salad for your MBA classes, get your degree (this is way easier than an engineering undergrad), and convince someone to hire you in a strategic business role.
You can't even really screw it up at a lot of companies, there's no need to be competent, the programmers and other grunt workers do all the actual work.