A cracked slab in itself is not that bad and can be repaired, but the reason it cracked could mean a lot of headaches.
Most cracked slabs are the result of poor soil compaction when the big developers push the hilltops into the valleys to make it easier to grade their lots. This is bad as there is not much that can be done, and the soil will continue to compact for many years if the original compaction was really bad. This is mostly confined to the early mass developslums of the 80’s & 90’s… think early carmel valley/carlsbad/lacosta.
Other reasons could be expansive soil, under slab erosion(busted pipe), creeping hillsides, not enough steel in the slab, and many others… all with different solutions of varying effectiveness.