Why is it necessary for an export firm to go in for pre-shipment inspection?

Pre-shipment inspection is required to ensure that only good quality products are exported from the country.