Genealogies are an important part of the Bible.
They put events into a time relation with us. They make events specific and show the real relationships that carry through the flow of biblical history, with real people involved. Myth, incidentally, is not like this, only history.
Voddie Baucham has a great piece on this: