I believe diplomats refer to that as “reciprocity” — the two countries have reciprocal visa waiver policies. As far as I know, there is no bilateral agreement, it’s just that one country includes the other’s citizens in a visa-waiver program, and the other country returns the favor (“reciprocates”).