I don't know why, but I imagine Hogwarts being his Mind Palace. And the Room of Requirement is where he puts knowledge that requires a specific case....like knowledge of stars and what dates they could be seen.
04/12/1961 - Soviet cosmonaut Yuri Gagarin became the first man to fly in space, orbiting the Earth once before making a safe landing. The space race was on, let the lunar landing begin. What has become of our NASA?