There is no single answer, but several theories explain this behavior.
Security and Comfort
As pack animals, dogs feel safest near their leader. Holding your paw can provide comfort in an unfamiliar environment like a car.
Attention and Affection
Your dog may simply want to connect with you and feel loved.
Anxiety and Boredom
Paw-holding can distract an anxious or bored dog and help release energy.
Physical Sensation
Some dogs enjoy holding something warm and soft, like your hand.
Individual personality and past habits also play a role. This behavior is usually not a problem unless it distracts you while driving. If it does, offer a chew toy, provide a comfortable space, use a crate or harness, or simply ignore it if it is calm and safe.