Why would you have an AI agent serve peoples requests from scratch when you could instead just write code that does the thing? Even if you accept AI's involvement, writing the boilerplate api code with AI assistance would make 100x more sense than having agentic responses per call.
Also, using imperative programming and frameworks instead of declarative would save man-power if you're so unconcerned with efficiency you'd resort to a GPU farm black box instead of coding. That will reduce efficiency by probably 50% but that's better than reducing efficiency by 95%.
