The dusty room at the top of the house is named after Athens.
Greek Attikos meant "Athenian, of Attica," the region around the city. Latin borrowed it as Atticus, and English had the adjective Attic by 1577, by Merriam-Webster's date. For much of its history the word described Athenian things, above all the Attic dialect. Etymonline notes that Attic became the literary standard of ancient Greece.
The house sense came through architecture. Etymonline says that, in classical building, an attic was a small, square decorative column, often used in a low storey above a building's main facade. The feature was associated with the Athens region. Merriam-Webster's account for younger readers puts it simply: buildings in ancient Attica had a second wall rising above the main wall or row of columns. Later European builders copied it, and the style became known as "Attic."
English took the noun from French attique. Its first known use, around 1696, names that low upper storey on a facade. From there the word shifted from the outside of the building to the inside. Architects applied it to the space enclosed behind that upper wall. "Attic story" is recorded in 1724. Shortened to plain "attic," it meant the top storey of a house, just under the roof, by 1807.
So the room had a long way to fall. It started as a refined classical detail on public buildings and ended as the place for old furniture and holiday decorations.
English already had a word for a room at the top of a house. Garret first meant a turret or small tower, from Old French garite, "watchtower," and from the early 1300s a room on the uppermost floor. The etymologist Ernest Weekley drew a line between the two. In his distinction, an attic is upright, while a garret sits inside a sloping roof.
Even "storey" has a surprising story. Etymonline traces it to Anglo-Latin historia, "floor of a building." Barnhart suggests the link may be rows of painted windows on medieval building fronts.