Is it? Parent user didn't express any explicit interest in the writing process, just the learning process.
Polishing writing is polishing thinking. Thinking is important to learning.
“You don’t understand a complex subject until you can explain it simply” and all that. Sharpening language skills really does help learning.
They are impossible to decouple.
Writing coherently and effectively goes hand and hand with learning. The OP example is effectively cheating and they outsourced a portion of their learning and thinking to the AI.
If the OP felt their thoughts were clean, they could have submitted the draft rather than the AI version. There's obviously reasons why they did not do that.
It takes real mental effort to go from draft to readable text. The more the OP farms this out, the more they will struggle with communication. This will eventually impact comprehension, since there's generally a loop in terms of how the two attributes grow.
Regardless of the main focus of your course, writing clearly is one of the main transferable skills that you're expected to learn.