Why do you get white color when you mix all the colors on the color wheel?

This is only with light, if you shine red, blue and green ( the primary colours) at the same spot you will get white. But if you mix red, blue and yellow (the paint primary colours) you will get a brown, purpley colour.