Договорились!

— Договорились! it's a deal

I've occasionally seen verbs expressed in the past tense like this.

I find it confusing since it's past tense. Is there a name for this grammatical scenario?