To work out who has to do an unpleasant task, the group "draw straws". A bunch of straws is held in someone's fist, however one is short (no-one knows which). Each person takes a straw, and the person who draws the shortest straw is the one who must do the unpleasant task.
So we say "draw the short straw" to mean you're picked for the unpleasant job... ie. you're unlucky.