Why do the popes have to change their names?

They are not required to change their names. They may keep their given name if they so wish.