Most of these wall wart transformers have a thermal fuse buried deep within the primary winding.
Even a overloading the transformer will lead to the thermal fuse blowing. Sometimes they occasionally blow without being overloaded since these transformers can run hot, or are overrated.