Code is an asset in the same way that any process documents in your organization are. They represent codified solutions to problems.
You do not need to re-solve this problem, and when a similar problem occurs, you can adapt the existing solution to the new problem.
Another way to think about it: if code was not an asset, we would delete it immediately after compilation.
Having no code corresponding to the software in service is a bigger liability than having it