Why did the border states stay in the Union?

the border states were slave states but they were against secession