Writing forces me to organize my thoughts, summarize, elaborate, reference other parts of the text, iterate until the pure essence is clear, remove redundancies, and this cements the concepts in my mind.
Merely reading, or worse, hearing, or worse copy/pasting something is only the first part of learning.
It's similar with programming but I would take it even further. I never really understand complicated code until I've written tests and run the debugger and been very close to it.
An AI chat bot is a powerful tool, but if you just use it to generate assignments you won't learn much. Inevitably it will be used both well and poorly and the results will be mixed.