Thermodynamic Explanation for the Cosmic Ubiquity of Organic Pigments