The reason for this is because due to the epicenter of earthquakes (where the highest magnitude and movement can be traced) the earth's surface can form cracks that can have different types of movement and thus when two surfaces collided it will cause the land to form higher which will then turn into mountain ranges.