I found an MP5 with a compensator already attached. I tried dragging a pistol suppressor from my jacket onto the compensator only for it to turn red as if it isn't compatible. I tried swapping the muzzles with the MP5 in my hands, on my back, and in the vicinity.
The only way I was able to change muzzles was to remove the compensator first, then attach the suppressor.