Highschool felt at best a dungeon, and at worst a torture chamber. That was primarily due to my mindset. I didn't really know how the world worked, and it seemed to me like the system had been designed for the purpose of dragging me down to the level of the brutes around me. But unfortunately the experience killed my interest in wanting to strive to attend a good (or any) university, which I now deeply regret. Not due to loss of credentials, but rather due to missing out on the social experience of uni.
If it were explained to me that the reason I was in school was because an industrialized society needs a place to put children for 8 hours each day so their parents can work, it would've made so much more sense than trying to believe the lie that we were there to learn. It felt so obvious that we weren't there to learn anything substantial. By learning to program video games I'd gotten a taste of the amount of effort real learning took, and memorizing historical dates or doing trivial math problems definitely wasn't any effort. So maybe one solution to "How do we cultivate the desire to learn?" is to relax on the idea that school is even supposed to be a place for kids to learn.