Those prophetical books tend to have been rewritten to make them prophetical in retrospect, so it does have that element.
I believe it was King Josiah, ~600BCE, who compiled the books and had them lightly edited into a History of the Kingdom kinda deal. The whole theme of the Kingdom of Judea being the Rightful Leader Of The Tribes really gives it away. There's a lot of convenient propaganda.