RGB for color composition rather than primary hues
The hues of magenta, yellow, and cyan are primary for subtractive combination (e.g. paints or inks) rather than additive combination such as light where red, green, and blue are primary.
Wikipedia has more detail on the whys and wherefores.
Computers use the additive colour model, which involves adding together RGB to form white, and is the usual way of forming colours when using a light source.
Printers use subtractive color, normally using Cyan(C), Magenta(M), and Yellow(Y), and often Black(K). Abbreviated CMYK
Cyan is opposite to Red, Magenta is opposite to Green, and Yellow is opposite to Blue.
This is a really simple explanation of a complex issue, the guy that came up with additive colour was James Maxwell (yes, that one), so if you dig into the many articles about him, that may explain much better.
Just for clarification, the primary colours you learn at school are incorrectly given as red, yellow & blue. In fact they are Cyan, Yellow & Magenta, just like your inkjet printer. As the previous posts state, Cyan, Yellow & Magenta are the subtractive prime colours; you see what the pigments reflect. Red, Green & Blue are the additive primary colours that CRTs, Plasmas & LCDs use.