Some likely causes:
Drives set to sleep
In the power settings for Windows, choose the option to not put hard drives to sleep. That has been reported to also effect the optical drives as well.
Anti-virus set to scan on certain events
Your A/V program might be set to perform scans on all drives, including the optical drive. Tinker with those settings and see if that's the culprit. Then determine if you want to continue to have the A/V program scan optical drives. You might want to put up with the random spinning if A/V is doing it.
It might also be set to perform some kind of pre-scan on any drive that is accessed. If a program needs to discover all filesystems connected to the PC, perhaps the A/V program is doing an activity scan of some kind.
Firmware update needed
Check the manufacturer website for your optical drive. It may be that there is an updated firmware for the device that will take care of this behavior.