It's just dawned on me that one possible reason is that you don't know which docs to read. I've recently been forced into learning some JavaScript. Given the original question I wouldn't have known where to start. Now the AI has given me a bunch of things I can look at to see if it's the right thing
If you didn't know enough to provide the original prompt, the AI sends you down the Date path instead of Temporal. But you could have used a 20 year-old search engine that would lead you to Javascript docs. You don't need error-riddled AI-generated code to find your way to the docs.