Aneuploidy in cancer cells can arise from various mechanisms including errors in mitosis, defective spindle assembly checkpoint, and abnormal centrosome function. Environmental factors and genetic predispositions can also contribute to the development of aneuploidy.