The good, the bad and the ugly…

Is there a fundamental distinction between what is considered good (ṭayib) and that which is considered lawful (ḥalāl)?  Does the same relate to that which is considered impure or malignant (khabeeth)?   Why was it for...