This is the case since earthquakes form directly from tectonic plates. It happens when 2 tectonic plates pass by each other and causes fiction from the bumby sides of the plates
So weather is basically day to day forecast (rain, sun, clouds) while climate is the all forecasts of an area over years. That’s a simple answer but I hope it helps!