School is the only time we're allowed to learn without also producing something. You can learn on the job, but there's an expectation that you will produce something as well. They're not paying you to learn for your sake, they're paying you to learn so you can produce something for them. This does not exist in school; everything you produce is only for pedagogical purposes.
I don't know why you brought up incentives; my point has nothing to do with them. My point has to do with time and money. Since you produce nothing of value in school, no one will pay you for it. So you're deferring income so that you can devote all of your time to learning - school is an investment.
If you somehow have a job where you are allowed to do anything you want and produce nothing, then I'd like to know who you work for.
That is so weird to me. When I was in school, I spent about eight hours a day, five days a week learning stuff that had little practical application. And now that I work, I spend, oh, six hours a day seven days a week learning stuff with little practical application. Bizarrely, the fact that I'm neither paid nor graded for learning has not stopped me.
Maybe school is good for people who are unable to learn without those incentives, but I'm not sure how much of the population shares that problem. After all, for schools to have something useless to teach, they needed someone to get the ball rolling by learning that stuff before schools existed. So it's been possible in the past.