From Wiki, and one reason for the switch:
In 1854, the Kansas-Nebraska Act exploded on the scene. Southern Whigs generally supported the Act while Northern Whigs strongly opposed it. Most remaining Northern Whigs, like Lincoln, joined the new Republican Party and strongly attacked the Act, appealing to widespread northern outrage over the repeal of the Missouri Compromise.