The narrator of the poem remembers a day when he was in a class about astronomy and the professor was taking the miraculous and magical and reducing the heavens to dry mathematical descriptions. The point, here, is that there is a tradeoff for knowledge, but maybe in wisdom there is joy.