The scanner works with strong magnetic fields. Inside an MRI machine there are parts called gradients. During a scan, the gradients turn on and off so fast that they create a sound.