It is so easy to get confused with chapters like this. Reading about so many kings as they overlap each other. Keep this in mind. You are reading about to two different kingdoms. Israel is comprised of twelve tribes (or smaller kingdoms). Judah is one of those tribes/kingdom.
The reason we continue to read about who is leading Judah is because of Jesus. The risen King comes from this tribe. What we are reading here is His family tree in Judah and the history of God's people in the other.
Now that that is cleared up,
I hope you have a great day.
Heart and Soul,
BAG
<><