I'm surprised that you are surprised!
Rewriting a million-lines-of-code project from scratch without the stupid bits is easy. Getting the equivalent of the working bits, instead...
Joel expressed this concept quite well already 25 years ago: https://www.joelonsoftware.com/2000/04/06/things-you-should-...