We live in a world where some value power and authority. God works within this world by establishing influence in many different kinds of people, those who were born into it (the expected), and those who were born without it (the unexpected). By establishing influence through David's kingship, God is setting the stage for Jesus (whose lineage includes David and Rahab) to shatter the world's expectations through the most unpredictable influence ever.