It was pretty clever for the time.

Originally they needed 4 wires. One pair (usually 14 AWG) for the closed circuit telegraph loop (72 to 105 VDC) and the other pair for the telephone circuit.

Later on the design was changed to allow the telegraph and telephone circuit to use the same pair of wires.