The original was a punishment for failure or disgrace on the battlefield.
The legionaries would draw lots, and 1 in 10 would draw a bad one, and be killed by the others.
Meanings change - hasn't been used as a punishment for a while, and doesn't mean 10% any more.