Why does Peru have earthquakes?

because there's two plates called "Nazco plate" and the "South American plate" tant the fault line of those plates are on peru...