Why do two isotoprs of an element have the same atomic number but different mass numbers?

The answer is here.

mass number of an element = number of protons + number of neutrons. (The atomic number is the number of protons in an element).