The output from a Class D amplifier switches voltages on and off, i.e. it is a pulse-width modulated (PWM) signal. You don't want to feed this directly into the loudspeaker. This high frequency signal must be smoothed out using a Low Pass Filter (LPF).
It makes no sense using an active filter because that would require a linear power amplifier, defeating the whole purpose of a Class D amplifier.
A passive filter using an inductor and a capacitor would give you a second order filter.