The rivers you see today are different from the original rivers. As the water carved down though the Appalachians, the streams encountered rocks that, in some cases, were very hard to erode. Some streams slowed their downcutting, while others etched faster and lower. We can see some of the results of this unequal erosion in the "wind gaps" of today.
Turn on your imagination, and visualize today's Northern Virginia being unoccupied by humans and covered with several thousand feet of rock. Make it simple, and image the surface being as flat as it is today. On top of that rock, imagine a series of rivers running east to the Atlantic Ocean.
Don't assume the rivers start at the current Blue Ridge mountains, like today's Occoquan and Rappahannock and York River (the principal tributaries of the York in the Piedmont are known as the Mattaponi, the North Anna, and the South Anna). Instead, visualize these as equal-sized rivers, all starting in West Virginia, then running eastward in parallel straight lines before emptying into the Atlantic.
Now, let your imagination help you dig the rivers deeper and deeper into the rock of eastern Virginia. Etch valleys, wash the sediments downstream, and dig a little deeper. Close your eyes for a moment if it helps to imagine this. If the rock of eastern Virginia is uniformly hard or soft, all the rivers you are visualizing will erode at the same pace and maintain their basic shapes... just a little lower in elevation each century, as they cut deeper and deeper in the natural erosional cycle.
But what if the rivers run into a barrier of hard rock, a volcanic layer that is very slow to erode and perpendicular to their channels? They'll all etch away at it slowly, and eventually they will all erode through that layer of rock completely. But what if the northernmost river encounters softer, fractured rock while the others are slowed down in their erosion cycle?
Then that northern river - the Potomac - will get a competitive advantage. It will dig a deeper valley, relative to the other rivers. The Potomac streambed will get lower and lower in elevation while other rivers to the south are still eroding slowly at a higher elevation. Small streams draining into the Potomac will get lower too, as the extra mechanical energy for their waters carves into the western Virginia bedrock faster than the other streams feeding the rivers to the south.
At some point, the Potomac tributaries will be substantially lower than the tributaries to the ancestral Occoquan just to the south. One little Potomac tributary will erode into the valley of a stream that formally flowed to the Occoquan. Water runs downhill, of course, so the Occoquan tributary will be diverted to the Potomac. Instead of flowing east to the Occoquan, the tributary will begin to flow north to the Potomac. The Occoquan itself will keep flowing - but with a little less water, while the Potomac gains both a little water and a little energy to cut into bedrock even faster.
That pirate of a tributary, intercepting different streams and redirecting them to the Potomac, grew to become the Shenandoah River. It was the first of the tributaries in western Virginia to reach the soft limestone layer that's now the base of the Shenandoah Valley. That tributary intercepted stream after stream west of the Blue Ridge, beheading first the Occoquan and then the Rappahannock and then the tributaries of the York. After each capture, the Shenandoah and the Potomac grew larger.
The Shenandoah carved out the Shenandoah Valley, dissolving the limestone and carrying the sediments north to the Potomac. Today, going "down the valley" means going north - downhill, just like the river. What's "up" on the map is not "up" on the topography - going "up the valley" means going south.
The Shenandoah joined the Potomac west of the hard Blue Ridge barrier. The Potomac kept cutting through the volcanic bedrock of the Blue Ridge, with the energy provided by the extra water pirated from other streams. You can see the "water gap" in the Blue Ridge Mountains through which it still flows, at a place known today as Harper's Ferry. Thomas Jefferson thought it was so beautiful a sight it was worth a trip across the Atlantic...but then, he lived in the days before modern electronic entertainment.
Water gaps, where the river narrows to cross through a mountain range, are logical places for more than scenic overlooks. Today on the Delaware River between Pennsylvania and New Jersey, the National Park Service has a Delaware Water Gap park set aside to preserve the natural beauty . However, that happened only after a bitter political battle over the proposed Tocks Island dam and reservoir. The Federal government was already buying houses and moving people out of the area to be flooded when the decision to build the dam at the Delaware River water gap was reversed.
In contrast to the ever-growing Potomac, the other rivers lost more and more energy as their tributaries were diverted to the north. Ultimately, all their waters west of the Blue Ridge flowed down the Shenandoah River, and the river headwaters were truncated to start at the top of the Blue Ridge. But we can still see the notches carved in that hard volcanic bedrock, before stream piracy robbed the southern streams of their western headwaters.
Each notch, or "wind gap" because only the wind crosses it now, is a low spot in the Blue Ridge and, not surprisingly, has a highway crossing it:
trails and then roads crossed through the Blue Ridge at topographic low spots
Source: ESRI, ArcGIS Online
Stream piracy is not unique to the Shenandoah Valley. The Pinnacles of Dan in Patrick County show the erosive power of the rivers draining southeast to the Atlantic Ocean is greater than those streams draining west to the Gulf of Mexico, much further away. Cumberland Gap in far southwestern Virginia, through which Daniel Boone led settlers into Kentucky along the Wilderness Road, is a wind gap now.
And stream piracy is still occurring, with the potential for a dramatic revision of Virginia's watersheds relatively soon near Blacksburg. ("Soon" is measured in geological time... none of us will live to see this change occur naturally.)
Virginia has a portion of what may be the second-oldest river in the world, named ironically the New River. It will be beheaded in Montgomery County by Craig Creek. When Craig Creek finishes cutting across Highway 460, drains the little Pandapas Pond managed now by the Forest Service, and intercepts the New River at McCoy Falls... then the New River will be redirected to the Atlantic Ocean.