If you encounter COBOL code in the wild these days, there are most certainly multiple good reasons (money being one of them), why the code has not been successfully rewritten yet.
DOGE Plans to Rebuild COBOL based SSA Codebase In Months, Risking Benefits and System Collapse
https://www.wired.com/story/doge-rebuild-social-security-administration-cobol-benefits/