It didn’t. Only frustrated and slowed down students.

Sounds like somebody who disliked implementing QuickSort as a student because what's the point, there is a library for it, you'll never need to do that kind of thing "in the real world".

Maybe someday an LLM will be able to explain to you the pedagogical value of an exercise.