Your CPU draws spectacular transient currents across inductors and capacitors inside your laptop, and these components are or can be microphonic, to varying degrees depending on design and manufacturing variance. Sometimes you can make it stop by disabling all the power saving and performance-boosting features so your CPU runs at the same speed and power all the time. This has a major cost in terms of battery life.