The source presents a valuable gift going to someone unable to appreciate it. Used of people, the comparison can insult; it should not be treated as a judgment of anyone’s inherent worth.
When you might use it
An expensive specialist tool is bought only to be left unused. (Original editorial example, not a collected quotation.)
Cultural context
The recorded wording is explained here without assigning an inventor, date or place of origin.