It has Reverse polarity protection.
That means it has to "see" voltage of the correct polarity from the battery it is connected to, before the charger power output is connected to the output terminals.
It's a common feature on better quality chargers.
(In the simplest form, it can be just a relay coil with a diode in series, across the output terminals, with the contacts connecting the charge circuit to the output terminals).