High-pitch sound coming from my macbook pro when I move a wired mouse I have a Macbook Pro Retina and when I move my wired mouse (mionix Naos, but same with others) there is a high pitch sound coming from my mac. 

It does not make any sound if I don't move the mouse, or if I the integrated trackpack.

The sound comes from the mac. If I use headphones the sound does not come from it, but form the mac.
I'm experiencing the exact same thing with my Macbook Pro 15" Retina (Mid 2014) using both the Logitech G Pro and older G500. 

However, I noticed that changing the polling rate for the mouse from 1000 to 250 makes the sound very hard to hear, though the higher polling rates of 500 and 1000 makes the sound more audible. Happens with either USB input and even if both mice are plugged in at the same time. Unplugging the power adapter does not make any real difference.