Why Did Virginia split into West Virginia and Virginia?

When Virginia voted to secede from the Union in April 1861, The more Northern and western counties decided not to secede. So, they broke away from Virginia and formed their own state of West Virginia.