The optical cable gets sound from the TV into the Bose.
If your Bose has a DVD player then you will also need to connect the video out of the Bose to the TV to get a picture.
If both the Bose and TV have ARC (audio return channel) then you won't need the optical connection. Check the manuals for how to use it.