Lots of people have receivers that don't have HDMI inputs. Having both allows you to send the HDMI to the TV and the optical audio to the receiver.
Also, some older TVs and many monitors have DVI or VGA inputs, neither of which support audio. People using HDMI to DVI/VGA converters need an alternative to HDMI for audio.