I think there has to be a distinction between the world of materials and the artistic world.
In material terms quality refers to how competent something is sure. It ability to perform its function or its grade.. 19 carrot gold, or strength of steel, the craftsmen ship of a suit. Or the durability and binding of a hardback RPG book. This can be measured. In this regard
@Ovinomancer is bang on.
However in artistic terms quality is often seen as synonymous with its good. A quality film, a quality joke, a quality dinner. Entirely subjective. Part of this is slang and changing language use. Part of it is us trying to apply material qualities to something that isn’t material and has uses beyond a mechanical function.
It can be difficult to determine quality in artistic endeavors because they often don’t have specific goals, or have so many goals that they can’t be easily quantified. Or they will affect different people in different ways.
The two areas don’t overlap very well. The oscars separate out the technicality of a film as a separate awards. So they can say ‘this film was technically excellent... but...’
The world quality just isn’t very good for dealing with things who’s worth isn’t based on intrinsic material value.