100% agreed. I'm not sure how big a problem this is, but it's been huge for me personally.
I write software because I like solving problems for people. It's gratifying to build clever things, but for me it has to end in making the world better somehow. Even if it's just one person, which has happened when I'm building in-house tools.
But there's so much out there that isn't about actually getting things done. E.g., the project that is touted as using the hot technology (e.g., ML) because people want to be seen as on the leading edge; actual results would be a hindrance to bragging. Or the executive who wants to respond to public criticism and so launches an initiative that will show a lot of motion and be something they can point to, but will not actually make a difference. Or the big-talking boss who gets promoted based on the size of his project and how tough he looks, so he drastically overstaffs something, causes a lot of chaos, and then makes everybody work stupid hours in crunch mode to hit an entirely artificial deadline. And so on, and so on.
These sorts of bullshit projects are way harder on me than actual hard work, because I experience constant dissonance between my goals (make things! help people!) and the day-to-day of the project.
And I think it's even worse for others, because it's easy to learn the lesson that the important thing at work is just to shut up and play pretend with whatever the bosses want. That's a lesson I absolutely refuse to learn. But many apparently do, and that can ruin a person for their whole career.