Construction firms in Turkey are legally obliged to take the possibility of earthquakes into consideration when designing and erecting new buildings:
https://www.hurriyetdailynews.com/turkey-updates-earthquake-map-after-21-years-124948
However building still need to be placed where people live and work. It's simply impossible to evacuate everyone (together with the businesses that employ them and the farms that feed them) to those parts of Turkey where the risk of earthquakes is lower.
Similarly, US cities such as San Francisco and Chicago continue to see more and more development, despite the fact that they're both already overdue for an earthquake on the same scale, or possibly far bigger than, the one that's hit Turkey and Syria. You can't simply move entire cities!