In one of the earliest English records of the word, a penthouse is the only shelter Mary and Joseph have.

Merriam-Webster cites a metrical sermon from around 1325 describing "a pendize that was wawles," a lean-to without walls. That was the original penthouse: a small structure propped against a bigger building, about as far from a luxury apartment as architecture gets.

The word goes back to Latin appendere, "to hang on, to be attached to." Medieval Latin made nouns from it for an attached building or lean-to. French developed appentis, still the word for a lean-to with a single sloping roof against a house. The Anglo-Norman French of England clipped off the first syllable, giving pentis.

A pentis could be many things. The Anglo-Norman Dictionary finds it used for anything from a small shelter or covering to an elaborate extension. It could be a porch, and one medieval record requires a pentis high enough for riders to pass beneath.

Then English speakers rebuilt the word to make sense of it. They linked the first syllable with French pente, "slope," since these annexes often had sloping roofs. Folk etymology turned the ending into "house." The earliest Oxford English Dictionary example of the new form is from 1530, in an English-French dictionary that translates appentis as "Penthouse of a house." Neither "pent" nor "house" was in the original word.

For centuries a penthouse stayed humble. The word also came to name small structures on a building's roof that held stairs, water tanks or machinery, a sense that is still in use.

The glamorous meaning is American. Both the OED and Merriam-Webster date the sense of a top-floor apartment, often luxurious and with sweeping views, to the late 19th century. The word had climbed from the side of a building to the top.

The Latin root is still busy in English. Appendere is also behind append, and appendix, which first meant an appendage or supplement, comes from the same verb.