When you say cancelled the flight, did they really cancel it? Or did they just switch it to operate on a new airplane? If it operated under the same flight number it wasn't cancelled.
But either way it sounds like they were not obligated to refund, but they did anyway (after a little arm twisting).