Not all code generates economic value. See slacks, jiras, etc constant ui updates.
That makes it a perfect use case for AI, since now you don't need a dev for that. Any devs doing that would, imo, be effectively performing one of David Graeber's bullshit jobs.
High quality code that does exactly what it needs to do and well and that makes various actors and organizations far more efficient at their jobs... but their jobs are of negative economic value overall.