The sound occurs when the transformer is working, and it is caused by the alternating flux that is generated by the alternating current in the core of the transformer. The flux causes the core to vibrate, which turns into sound. It is completely normal.