When the occurrence of an earthquake happens it may cause the ground to crack due to generated stress in the surface materials! It refers to the magnitude of an earthquake, if an earthquake has high magnitude cracks will occur but if there is low magnitude cracks some appear as much or not at all!
I hope this helps :)