But accountingn software has existed for decades and cpa(s) are still being minted and are in high demand.
I think their advantage is that they have a licensed profession that is protected by law. It's the same reason an AI lawyer or AI doctor or AI civil engineer or AI actuary will never be a thing despite most these professions being knowledge based and easily automated (with the exception surgery+gynecology in medicine which is manual labor) . The value of these knowledge positions is in the licensure, and they have a lot of lobbying groups advocating for their interests as a licensed group.
Where computer science failed,(and I've talked about this with
@IIVI before), we never created a formal domestic licensure system that put up a moat to both outsourcing and automated solutions. Instead, we made it easier and easier for both computer scientists and computer engineers to be replaced because we allowed ABET , our accreditation body to start certifying people in different countries which effectively encouraged outsourcing. These generic office jobs and middle management roles are in the same boat too.
For example , there is no such thing a certified public computer scientist. We don't have a governing board with regular exams like accounting, law, medicine, nursing, actuarial sciences ,etc have. Ironically, we are one of those industries that really need it when you consider that everything from the airplanes in the sky, to medical devices like pacemakers, to cars on the road is dependent on us not making mistakes.