Each medal is different and is handed out depending on the outcome of the race/order of the racers, so we're counting the number of permutations. 4 medals are given to 4 runners, so there are
[tex]4!=4\cdot3\cdot2\cdot1=24[/tex]
possible ways to do it.