This means the kings and their people sinned and rebelled against God like the people of Babylon did.
This is repeated for emphasis.