This is only partly true. AI works really well on very legacy codebases like cobol and mainframe, and it's very good at converting that to modern languages and architectures. It's all the stuff from like 2001-2015 that it gets weird on.
Any sources? Seems unlikely that LLMs would be good at something with so little training data in the widely available internet.