Originally applied to politicians from the Northern United States who went to the South after the civil war to try to exploit the unstable situation there for their own profit. (They often carried all their belongings in a carpetbag.)