It's not a law of nature. Bit rot and technical debt can be counteracted if maintainers are vigilant and focus on quality and maintainability. Unfortunately, not many examples come to mind: the Linux kernel, PostgreSQL, SQLite, OpenBSD, for instance. I can't really think of any instance managed by a for-profit organization.