During the positive half cycle the D1 diode is on and hence ,the capacitor is charged.
During the negative halfcycle D2 is ON and hence the capacitor is charged.
Though there is some drop in the voltage, it is very less also the noise is reduced as compared to the earlier case.