I usually hear it used to mean hurt unexpectedly: "I thought I was doing a great job, so I was really sandbagged when I got fired."
To learn where words and expressions come from, Google it followed by the word derivation, like this: sandbag derivation
So try that. And look at several answers!
If you're still unclear, come back here to ask for more information.