I think companies used to be able to deduct "R&D time" which was a very vague definition for programmers and the IRS has tightened that up.
https://www.eisneramper.com/insights/tax/impact-174-software...
https://www.eisneramper.com/insights/tax/impact-174-software...