In Present-Day English, yard has several meanings, but the two dominant ones are an open area near a house or other building and a unit of linear measure. But while spelled and pronounced the same, these are two separate words, descending from different Old English roots.
The first, the open