A whipping boy was an individual who was punished for the mistakes of others.
In 2369, Q sarcastically encouraged Benjamin Sisko to blame him for the power outages on Deep Space 9, adding, "I suppose it's my fate to be the galaxy's whipping boy." (DS9: "Q-Less")