https://www.cbsnews.com/newyork/news/earthquake-new-york-city-aging-buildings/
So many older NYC buildings just weren't constructed to modern earthquake standards.
Fortunately, this was nowhere as intense as what can happen in Taiwan, Japan, NZ or California.
Unfortunately, urban earthquakes can strike at any time without warning.
https://www.worldatlas.com/articles/the-world-s-10-most-earthquake-prone-countries.html