I think I know the answer though I read this question 2 different ways;
They are 5 different colours to represent the different continents that participate in the Olympics. Asia, Europe, The Americas, Australia (well Oceania) and Africa.
Though if the question is why the rings are those specific colours, I'm pretty sure it is that every countries flag contains at least one of those colours.