The difference is due to what they are designed to do.
Work Step by Step
We know that heat pumps are used to heat a given volume. Contrarily, refrigerators are used for the opposite: cooling a given volume. As a result, the equations for COP will not be the same for each.