There’s optical digital line out up until the 2015 Macbook Pro, sending light out of the headphone jack. You need to add a little plastic adapter compared to standard TOSLINK cables, which I presume were getting too big.
To go from optical back to electrical just seemed wrong from a tech evolution standpoint. Not hearing a lot of call to rip out multimode fiber in backbone networks and replace it with a shinier coax. But HDMI seems to be meeting the need, and there is always the aftermarket for fully annealed 99.999% oxygen-free HDMI cables to consider.
For legacy equipment you can get a box that takes hdmi in and spits out spdif.
Yes, that's what I wrote was dropped in G4.