A transformer works on the principle of electromagnetic induction, which requires a changing magnetic field to induce voltage in the secondary coil. When DC voltage is applied, the current remains constant, producing a steady magnetic field instead of a changing one. Since no electromagnetic induction occurs, no voltage is induced in the secondary coil, resulting in zero output.