The origin of this belief could be traced in the writing of number 17, in Roman numerals: XVII.
By shuffling the digits of the number one can easily get the word VIXI ("I have lived", implying death in the present), an omen of bad luck.
In fact, in Italy, 13 is generally considered a lucky number.