Why is it that current pass from charger to battery while both of them have the same voltage?
The voltage is not the same. 

When the battery is charging, the charger output will be just slightly higher than the battery voltage in order to drive current through the wire between them. However, the voltage difference might be only a few microvolts, so it will read the same on a multimeter that doesn't have very good resolution.