There might be a limit to how much fun you can get from learning, and I'd say most of the fun comes from the novelty of it. Figuring stuff out is nice, but education might be a source of enjoyment after a certain point (which I think is why "melancholia" was chiefly associated with philosophers). It doesn't last forever.
But what if it isn't where we wander off to, inside or outside, that matters but the wanderlust itself? Maybe the main hindrance to human happiness, once some living standards are satisfied, is just our inherent restlessness. And maybe Pascal was right: maybe all of our miseries indeed derive from not being able to sit in a quiet room alone.