Maybe something somehow got stuck in the space between the spindle and crankarm when it was installed and slowly caused a stress fracture which eventually broke. Or maybe a manufacturing defect. You're lucky it wasn't worse, it might have ended badly.
-Gene-