Inversions occur due to breaks in the DNA strand followed by the incorrect rejoining of the chromosome. Factors contributing to these breaks can include ionizing radiation, exposure to certain chemicals, and errors during cellular processes such as meiosis. These errors can lead to segments of the chromosome flipping and reintegrating in the opposite orientation.