means that
members of a travelling group may agree to keep shared experiences private. The saying expresses a social convention, not a reason to conceal harm or wrongdoing.
similar
What happens on tour, stays on tour. What happens in Vegss, stays in Vegas.
When the agreement between people who are traveling together, that whatever happens in that trip must be kept strictly confidential, never to be…, the saying “What happens on the road stays on the roaad,” is appropriate.