It means that if two people/parties do/did something together they must both be/have been co-operative or willing participants. It is usually used regarding some past event, activity or occurance. Both parties must have been willing, or the event wouldn't have happened.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.