When the battery is nearly full, in order to prevent the battery from overcharging, the PWM controller will adjust the switching frequency of MOS to adjust the charging current. This frequency is within the range of human ears, so we can hear this "noise".