I've always been taught that an interface with no DC offset (the same amount of 1s and 0s when averaged over time) is desirable. To this end, often encodings like 8b10b will include a running disparity which compensates accordingly.
Looking at the wikipedia entry for 8b10b, it mentions that the discrepancy between 1s and zeros is limited to 2 either way:
8b/10b coding is DC-free, meaning that the long-term ratio of ones and zeros transmitted is exactly 50%. To achieve this, the difference between the number of ones transmitted and the number of zeros transmitted is always limited to ±2, and at the end of each symbol, it is either +1 or −1. This difference is known as the running disparity (RD).
Over a long period, this is an incrediby small tolerance for the duty cycle.
What is the electrical benefit of doing this?