Of course that doesn't mean some kinds of gruntwork programming can't be automated. Lots of CS research over the last half-century has focused on exactly this: how to eliminate repetitive drudgery and provide the right abstractions to enable human programmers to concentrate on what's interesting and build bigger, more capable programs. In some sense a high-level language compiler is an "AI" that programs for you: you give it a compact specification of what the machine should do and it "writes a program" (generates machine code) to do it.
The ability to machine-learn some functional components of a program doesn't replace human programmers, any more than compilers do. It just enables programmers to spend their time and energy in other ways and levels-up the kind of programs we're able to produce.