Red, green and blue are the "additive" primary colours whereas you may be more used to the "subtractive" primary colours (cyan, magenta & yellow) that result when you mix paints or inkjet inks for example.
Have a look at http://en.wikipedia.org/wiki/Primary_colours for a better explanation than I could give.