It was retaliation for our burning Toronto (then called York).
I think Blair apologized for the burning a couple of years ago in a speech before congress. I don't think it was necessary. It was our own fault for not keeping British out of the capitol.