Etymology
Today it means: A passage into a field or yard between a fence or wall, closed by bars that can be lifted out of the posts. Full definition →
From bar + way.
Etymology from Wiktionary, CC BY-SA 4.0.