I get stuck on asking “why am I solving this problem” too much. I am surrounded by technical problems that it would give a dopamine hit to solve and I’d feel the pleasure of helping my fellow man, but 99% of them feel like they shouldn’t even exist and solving them doesn’t really lead to any meaningful progress beyond providing me job security and money. (How) do people deal with this?
Deciding which problems should be solved, identifying where there is business value in solving them, is pretty much the definition of business leadership.
I think the only real answer is moving into management, where you can more effectively argue against spending effort on things that aren't worthwhile.