Behind all the sacred royal genealogies we appear to have Bronze Age Cosmology in fullest slender. This cosmology was preserved throughout the ages through folk tales with real cosmology to be revealed to initiates by masters. This culture was almost global in its extent and certainly a part of the old world and the Indo European Pantheon.
Thus we learn how preliterate societies maintained cultural knowledge and the ongoing central role of masters or the literate few or even the ones who were tasked to simply remember. Parables were obviously the medium of choice as they were typically unforgettable.
The success of the Grim brothers triggered an effort to gather similar tales globally that continues to this day with success.
Fig 1. The Brothers Grimm. Grim by name and grim by nature, but highly intuitive. (Public Domain)