The costs of poor quality are high (internal failure and external failure). Although it might cost to implement prevention and appraisal steps, the costs involved there, to improve quality, are less than the internal and external failure costs. Therefore, the net cost of improved quality free (or negative).
Please do not post the same query in more than one place.