Headphones are stereo (okay, there are some exceptions), and optical S/PDIF can do stereo PCM, so there's no quality downside. But for home theater audio, you can't do any lossless multi-channel formats over optical S/PDIF, so the vast majority of enthusiasts will use HDMI.