Widely generalizing, because it obviously depends on the specific field/university/...:
Academia typically doesn't care about code: sure, you can hack on your open source code, but don't count on funding for that or it being recognized as something as "worthy" as a paper. In extremes: "Why would a Postdoc in a computing related field need to be able to write big code projects, isn't that what students are for?".
Given that, there typically isn't a "programmer" role in academia (although there are exceptions): You're expected to follow the academic path, which involves publishing etc. If your contribution is "I write great code for projects happening here", that's not something that allows you to progress, if it results in a long-term role at all, even if it actually makes others a lot more productive. There's mostly only space for academics who happen to also code, and I've seen a few people crash out due to judging that wrong.
If you want to do research in an academic environment as a job, that's great (although depending on what it is, an industry research lab can also be an option). For people that are more about "making things with code" and don't need to environment, it's probably not the right place. For those that are happy at slowly chipping away at a problem, without pressure, a day job in industry and doing the development on their thing in their free time is also an option that avoids all the problems of an academic career.
E.g. for me personally, I decided to not go for a PhD because I didn't have a burning question I really wanted to solve that a PhD would give me the opportunity to figure out, and without that as a motivation it felt like all the things coming with it wouldn't be worth it (for me, having to do lots of academic writing was the main sticking point. Can't do that well, could probably force me to learn it, but would be unhappy with it). On the other hand, I know lots of people for which that worked out differently, but programming typically isn't the main aspect of what they're doing.