I would guess two main reasons:
1. Looks smart.
2. Keeps cool (reflects sun).
Our flying helmets used to be white for the second reason until someone decided we needed to camouflage ourselves in case we were spotted lurking in the cockpit. Then we went green!