Jesse is the father of David, but this is written centuries after their deaths. This is a prophecy of the messiah who will be a descendant of Jesse, and, by implication, will be like David. (Spoiler alert: it’s Jesus.)