The Lord commanded this to happen to the people of Judah. He did it to remove them from his presence. This was because of all the sins Manasseh had done.