Heroic epic and saga (Indic as well as Greek and Hebrew, etc.) combine action with genealogy. This is necessary because the action is performed by aristocrats who require genealogies.
Ch.VIII Further Observations on the Bible - The Common Background of Greek and Hebrew Civilizations (1965 [1962])