The expression originated with the advent of computers, meaning that the quality of output was directly dependent on the quality of information fed into the system.
It was popularized in the field of cognitive psychology, especially among students of Gestalt Therapy.
* In and Out of the Garbage Pail, Fritz Perl