I hope others have given you a feel for the meaning. In some cases, they are totally unrelated.
Rolls Royce makes a quality car. How does purity apply at all in this case?
A chemical may be near 100% purity, but if it does not meet the required physical specifications (say granule size or bulk density) it is of poor quality.
"March on. Do not tarry. To go forward is to move toward perfection. March on, and fear not the thorns, or the sharp stones on life's path." -- Kahlil Gibran