"Quid pro quo" is based on a saying in the Latin language. It means the same thing as the English saying "a tit for a tat", or trading something for something else. It can also mean the same thing as "an eye for an eye".
Lawyers sometimes use this saying to mean "an even trade".