That’s not the point. The point isn’t to force people to learn. The point is eduction is readily available. Sure there might be a person there that doesn’t want to do anything but live in their dorm or what ever. Except, there is no obligation for them to learn anything either because school doesn’t end.
They could be stuck into a class all about socializing while playing video games. A class about stacking blocks. Whatever.
Then you say, well then how does society work if everyone is dicking around in school. It’s not a complete answer but imagine you have all these people who have learned all this very specific stuff according to their interest. What do you think they are going to want to do with it? They will want to apply it.