Omri was the commander of the army of Israel. The men in the camp heard that Zimri had made secret plans against the king and killed him. So in the camp all the soldiers made Omri the new king.