My car developed a very annoying (to the point where it hurts my ears) high pitch whistling sound. And it only appears when i am applying breaks... i thought it was due to sand in the breaks, maybe some sort of bearing falling apart... however i found that the whistling stops as soon as i turn off the fan inside the car!

Can someone explain to me how this could be possible?
I have tried reproducing the sound with the fan off and had no success, as soon as i turn it on, however and apply breaks - i can hear it...