Why Buildings Fall in Earthquakes