Buildings can be built safely even for this magnitute, it needs special techniques such a shock absorbers but its possible and should be done so.
The problem is human life is just not worth the money for most contractors, why would they even invest in those, there will be no consequences anyways.