Why is the sound playing on both of my devices while mirroring?

If you have enabled the option to transmit sound when mirroring, then you can play sound only on one device by lowering the volume on your iOS device. Each device’s volume is distinct.