Lee was a Virginian first. When his duly elected state government seceded from the Union, he followed. Virginia only seceded because Lincoln was attempting to coerce the states that had already seceded to remain in the Union using force.