Perhaps he was chosen by the spirit who dwelt within that cave to be a living example of a moral expressed in children's storybooks, seeing into his heart to know he could only be changed by tragedy. His greed quickly shifted into not generosity, but simply another form of selfishness.