It knows that the apologetic tone and acknowledging understanding of your critique is the most probable response for it to generate. But that’s very different from actually understanding how it should change the code.
https://metr.org/blog/2025-07-10-early-2025-ai-experienced-o...
Since that study demonstrated that experienced developers currently suffer a decline in their productivity when using LLMs, it's perfectly likely that less experienced/junior developers who normally will struggle with syntax or simple tasks like organizing their code are the ones experiencing the boost of productivity from LLMs.
Thus, it seems the devs benefitting the most from LLMs are the ones with the skill issue/more junior/early in their career.
Which group do you belong to?