You can't make buildings safer by decree. It takes resources. Haiti is the poorest country in this hemisphere, by far. (The next poorest countries, Guyana or Nicaragua, are each twice as productive by per capita GDP.)
Even with an accurate idea of the chances (but not certainty) of such a major earthquake, the people and government could quite rationally have decided other more pressing needs deserved all of their meager expenditures.
http://www.guardian.co.uk/world/2008/jul/29/food.internation...
A mud hut may fall down in an earthquake or blow away in a hurricane but is less likely to kill you when it falls over then a brick or concrete building.
Isn't this more about living within the societal means than simply about poverty: If where I live all cars crash or blow up because we lack resources to produce quality cars then one must accept a bicycle or horse and cart for family transport or suffer the consequences, no?
Building codes do not enter in to the equation.