Muataions within genes can be caused by several ways.
Sometimes they can be spontaneous or other times they can be induced by environmental factors. These factors can include chemicals such as chemicals found in cigarettes. It can also be caused by ionising radiation.