As mentioned above, putting cold eggs into boiling water can cause them to crack immediately. Also placing too many eggs in the pot can cause the shells to crack. It's also possible that the crack pre-existed and just got bigger. Cracks in the eggs don't necessarily make them inedible as long as they are small.