 Because she is connected to Joseph. Joseph is at the house of David. And therefore her connection has everything to do with what God entrusts her to birth. Because according to the Old Testament prophecy and of course John verifies it in John chapter 7 and verse 42. The scripture has already said that the Christ would be from the seed of David and from the town of Bethlehem where David was born.