Answer:
That phrase is what is known as a mneumonic device. The capital letters stand for colors, which are: red, orange, yellow, green, blue, indigo, violet. These are the colors of the rainbow (although indigo is often omitted from the list, being very similar to blue).