Why is a transformer noisy?

The humming noise is caused by the changing flux in the magnetic core. This phenomenon is called magnetostriction.