Ask, what is the function of grammar in language? I would argue two major functions. Forcing an encoder to marshal ideas into a coherent structure. Preserving the integrity of that structure when communicated and decoded.
Grammar sounds off? Was the message correctly understood; is there enough left to apply error correction and regenerate the intended message?