I think this is probably just the common experience. Programming is probably best learned hands on rather than through a book, which is why the use of programming books has fallen off a cliff once we got other options. Even before AI I think programming books had already fallen off in popularity.
There would be some things books can provide that are probably better than other options, but for a lot of hands on skills it seems best to learn in a hands on way.
Maybe, I haven't looked into it too much, but among the people with a preference for classroom and textbook based learning there does seem to be a large degree of fear of failure, which influences what might otherwise be a different natural preference. Fear of failure is exacerbated by making mistakes in public, but it seems to even apply when nobody is there to observe someone making mistakes.