This is about taxes. I imagine you’re aware that GAAP accounting and tax accounting can treat things like depreciation schedules differently.
However: https://www.law.cornell.edu/uscode/text/26/174
any amount paid or incurred in connection with the development of any software shall be treated as a research or experimental expenditure [and be capitalized and amortized over five years even if it is disposed of, retired, or abandoned]