Management: “I want an app that does A.”
Programmer: “Alrighty. Can you give me more details on why you want that app and what you’re hoping to achieve?”
Management: “No. Now how long will it take to get App A out the door? Executive Foo said he wanted app A, so we need to give it to him ASAP.”
Programmer feels satisfies they’ve at least tried, and any screwups are managements fault. Scrambles to get App A out the door. Management comes back with feedback
Manager: “What is this? This isn’t what we asked for. It doesn’t even remotely address Business Problem B and now Executive Foo is on the warpath after championing this project and looking like a fool!”
Management finds a way to convince Executive Foo it was all the overpaid, useless developers that screwed up and reinforces the stereotype of IT being an untrustworthy and frustrating blackhole of a cost center. Management saves face and they pay a consultant to do it. The programmer is left dizzied by the sudden political flak they were just blindsided by.
In that situation, it's really a lose-lose for the developer. If they go over their manager's head, they've just made a very unfortunate enemy. And as the manager has more rapport and access to the executive, it's likely going to wind up fruitless as the manager finagles doubt into your evidence (by leaning on that existing relationship and handwaving misunderstandings and referencing non-existent verbal conversations into the points of contention that you raised).
And if they don't go over the manager's head, they now have an internal reputation for incompetence that'll negatively impact the rest of their time at that employer. So they're screwed either way.
At that point it's better to just leave rather than make waves. If you make waves they can come back to drown you later on during your career or job search. If you leave with little ado it stays more compartmentalized to that toxic environment.
management: "I want an app that does A to solve business problem B"
programmer: "If you want to solve B, you're better off with an app that does C. If you do A you'll run into problems X, Y, and Z. I can do A but i strongly advise against it"
Far too many programmers just go ahead and do the first idea and then it inevitably falls apart, because they're too scared to act like professionals and give their own professional recommendations.