Its relevant because to fulfil the messianic prophecies, he had to be of the "seed of David" (and the author of the gospel of John agrees!).
And you interpret "seed of David" how?
To me, it means a biological descendent from David's tribe. Through Mary, Jesus meets this requirement.
SD