No one knows exactly how the process of DNA damage leading to pancreatic cancer occurs. Analyzing pancreatic cancers removed by surgery shows certain mutations that occur in nearly all cases, and others that vary between people.
Some of these mutations occur randomly. Others occur in response to things we do or experience in the environment. Some mutations may be inherited. When enough mutations accumulate, a cell becomes malignant and a tumor begins to grow.