The expression is originally derived from the
Aesop fable "
The Fox and the Grapes."
Sour Grapes was also the female baddie in Strawberryland, the Strawberry Shortcake universe. She had a pet snake and was the female counterpart of the Peculiar Purple Pieman of Porcupine Peak, who was even less competent.