While that has become the accepted definition, the word originated from the Roman Legion’s occasional habit of killing every tenth man of a disobedient or otherwise displeasing unit. It did wonders for discipline, I hear.
I read some of the history of the word. Apparently the unit was divided into groups of ten, and the men in each group drew lots. The one who drew the unlucky lot was beaten to death by the other nine.