Back before the dawn of time (or at least, before wireless tech was as prevalent as it is now), the optical port served an ...
A cable used to send audio CD sound to the computer's sound card. When playing audio CDs, CD-ROM drives output analog sound to both a headphone jack and external connector just like a CD player.