How did Haiti get an earthquake?

Because going through the middle of haiti is a fault line so he fault line causes earthquakes when the two plates on each side move.