When you copy and paste a formula with relative references, the references change to reflect cells that are in the same relative position to the formula.
Copy and paste formula. The formula is the same, but it uses the new cells in its calculation.