Identical twins have the same short tandem repeats in their genetic code basically because they have exactly similar genes.
While environmental influences and the aging process can cause mutations to occur leading to the presence of differing of short tandem repeats among identical twins, this is not the general rule, and is only seen on a case-to-case basis.