The Tour de France is a 3 week long race with multiple 21 individual stages. Vingegaard has won that because he is exceptionally good in the very high mountain stages that have traditionally decided who wins the TDF overall. He’s very good, sometimes exceptional, in the time trials too
The TDF is a test of endurance, climbing and team strength
The Olympic road race, like many one day races, is a test of power more than anything.
Mathieu van der Poel has won one single stage in the TDF but he’s won the World Championship, 6 monument classics and dozens more of the bigger one day races.