Because the current required is only a few milliamps, if that even, a transformer is not required. All that's needed is a suitable resistor that cuts the voltage, but there will also be a solid-state integrated circuit to measure the resistance of the battery and cut off the supply when the battery is fully charged.