AI can’t write for shit because it doesn’t have your experience for context and it doesn’t know what you actually want to say.
Hell, most people barely have a rough idea of what they are trying to say when they sit down to write, and they have all of the context.
Writing and coding do have many similarities, at a high level. But the things that make AI good at coding don’t really apply to writing. The analogy doesn’t work well here.