Quality in the informal sense that is used in every day talk is how well a product/service fulfill the expectations of it's kind.
Which means that a bad chair and a good chair can both be of perfect quality if they do not deviate from the specifications. If there are no specifications the quality is unknown.
Formal usage of quality can be measured, informal cannot.