DC wandering is a common phenomenon in NRZ-L based data streams. (In NRZ-L systems ZERO is 0V, and a ONE is 5V or viceversa). If we have too many ones back to back (or too many zeros if our data is defined as 0 being the 1V or 5V) in AC coupled systems, the back to to back ones look like a DC line as the drawing above suggests. Due to capacitive coupling between the circuits (AC coupling means they used capacitance to connect two circuits) following circuits (if it is a detector) stop operating or start evaluating all the data as zeros. This would not happen if the data is BiPhase-L (such as Manchester coded data). However, the Manchester code uses twice the frequency bandwidth as the data levels change right in the middle of the bit sequence (a ONE could be a change from 5V to 0V and a ZERO could be a change from 0 V to 5V). In NRZ systems a period of data is two bits (could be same binary bit or opposite).
AC coupling is desired if there is a bias voltage (DC) used to turn on a gate quicker, or any other reason, in the previous stage of the circuit. Usually low bit rate data circuits do not prefer to use AC coupling due to long periods of ones and zeros.