Courtyard

enclosed area, often by a building, that is open to the sky

A court or courtyard is a space inside a building that is open to the sky. These spaces were often used for meetings, which leads to the other meaning of court, as in a court of law.