A direct coupled amplifier needs to be able to supply the +ve and -ve parts of the audio waveforms into the speaker resistance. Modern amplifiers often have PNP and NPN transistors, or P-MOSFETs and N-MOSFETs, so symmetrical circuits can be made that are reasonably efficient.
If symmetrical active devices are not available, or they don't work at voltages and currents that match speakers, then a transformer will often increase efficiency by allowing the active devices to work in one direction only or to work with a different impedance load than the speaker resistance, or both.
Valve amplifiers usually need output transformers. The valves only work in one direction, and they need a large voltage to work. With those two constraints, a transformer will usually simply the design.