means that
a mutually agreed and equitable exchange is legitimate, since neither party has been unfairly deprived of anything.
The saying “A fair exchange is no robbery” can be used when often, to justify a situation when one deprive another of something valuable and substitute it with something of lesser worth.