Identical twins have exactly the same genes. They are practically clones of each other. They also shared an upbringing that accentuated their similarities.
But many identical twins are noticeably dissimilar in personalities and many other reasons.
One reason is that environmental changes change the behavior of genes. Environmental factors such as diet, illnesses, chemicals in the environment, smoking, drugs and medicines can alter the genes of twins.