Listen to music while watching videos on the browser
Two apps can't play media at the same time. It's not that Safari is preventing the music from being played but that the media player playing the video from Safari is the front-most media player, overriding any background music. Thus, you can't 'turn off' audio from Safari because it's not from Safari.