So Jeroboam and all the people came to Rehoboam the third day, as the king said, “Come to me again the third day.” And the king answered the people harshly, and forsaking the counsel that the old men had given him, he spoke to them according to the counsel of the young men, saying, “My father made your yoke heavy, but I will add to your yoke. My father disciplined you with whips, but I will discipline you with scorpions.” So the king did not listen to the people, for it was a turn of affairs brought about by the Lord that he might fulfill his word, which the Lord spoke by Ahijah the Shilonite to Jeroboam the son of Nebat. 1 Kings 12:12-15.
The older men probably knew that Solomon’s ambitious building projects and lavish lifestyle was burdensome for the people. But Rehoboam preferred the tough guy advice of the young hot shots of the court. This would be the last straw as the people knew they would be in for decades of harsh rule. So they chose someone who would lead them back to idolatry, but make their lives easier.
So, Solomon had forsaken following the Lord in his later life, and his son seemed no better. The people were between a rock and a hard place. There were no good government options. That is because godliness comes before good government, not the other way around.
Likewise, if we pay all our attention to out elections, and do not first seek the kingdom of God, we will only go from godless leader to godless leader. None of those people are our Messiah.