Whipping boys existed in the English court in the middle ages. King’s aides were forbidden to punish the prince, so they would give the prince a normal friend and then take it out on him if the prince misbehaved.