Vinaigrette is a classic example of an emulsion—a mixture of two liquids that normally don't mix. Oil and vinegar (or lemon juice) are immiscible; left alone, they quickly separate into distinct layers.
When you shake vigorously, you break the oil into tiny droplets that disperse throughout the vinegar, creating a temporary, cloudy suspension. This is a mechanical emulsion, stabilized only by the force of shaking. Without an emulsifier (like mustard, honey, or egg yolk), it will separate again within minutes.
So that quick shake before drizzling over salad? It's physics in action—delicious, fleeting physics.