Mutations in disease genes can occur due to various factors, including environmental exposures (like smoking or UV radiation), inherited genetic predispositions, or random errors during DNA replication. These mutations can be detected through genetic testing, which can identify individuals at higher risk and guide treatment decisions.