This is necessary to prevent islanding.
If the inverter outputs when the grid has lost frequency then other inverters can respond by also starting to output. This creates a chain reaction and can generate serious currents in sections of the grid that are expected to be on outage, which is a safety hazard.