The idea is to mask the sound of the muzzle blast and confuse the enemy as to direction of the shooter. You cannot tell the direction a round came from by the sound it makes passing you.
That’s logical. Of course hi tech instruments could possibly be devised to pick up location of a supersonic shot by mapping the shock wave. Of course fire fights can be quick and locations non static so a device like that might be useless.