Why do volcanoes and earthquakes often happen in the same areas of the world?

this is because of platectonics volcanoes are formed when two plates underground crash into each other like this:

--><--

casung the ground above to form a mountain but volcanoes have the same procces but with the top plates and the plates closer to the core of the earth therefore causing a volcanoe an eruption is caused by a small tremor underground but not felt above

an earthquake in the other hand is when two plates hit and slide against each other these two natural desasters happen in mostly the same place because of where that exact place is situated, weather in beetween two plates like haiti or around the middle of a plate like canada.