If you structure learning in such a way that makes learning just a means to some end, and overindex on that end being the ultimate goal, that's what you get.
This is a pedagogical problem that AI merely exposed. Educators need to figure out How to make students choose the scenic route instead of having them optimize for the most efficient completion of a task.