It's not a problem. The switch is functioning exactly as it was designed.
The mute switch is for system sounds only, not music, videos, games, etc. This mutes things like the keyboard clicking sound and any other notification sounds. That way you can listen to your music while browsing the web without hearing the annoying "tick tick tick" or being interrupted by a notification beep.