Isotopes have different mass numbers because their nuclei contain different number of
Neutrons.
Isotopes are defined as the atoms of the same element, having the same atomic number but different mass numbers.
Since,
mass number = number of protons + number of neutrons
the number of protons in all the atoms of a particular element is same, therefore to have different mass numbers, isotopes contain different number of neutrons.