Digital audio output is a connection type (e.g., optical/TOSLINK, coaxial, HDMI) that transmits digital signals from a source (TV, computer, streamer) to an external processor (AV receiver, DAC, soundbar).
Earphones/headphones are transducers you wear that convert analog electrical signals into sound waves at your ears.
They are not the same: one is a signal path, the other an endpoint device. You can connect earphones to an analog output (3.5mm, RCA); digital output requires a DAC (digital-to-analog converter) before earphones can be used. Many modern devices combine both: a headphone jack with a built-in DAC fed by the digital signal.