Scaffold comes from the Latin scaffaldus, via Old French eschafaut, a raised platform for spectators or builders; the software sense appeared in the 1990s with frameworks that generate project skeletons.
The word entered English in the 14th century from Old French eschafaut (ultimately from Latin scaffaldus, a raised platform for viewing). Its first sense was a raised stage for spectators or executioners; the construction sense, a temporary frame around a building, came later. In the 1990s, the object-oriented frameworks that generate project skeletons adopted the metaphor: the skeleton is the frame, the application grows on it, and once the application stands on its own, the scaffold is invisible.
Scaffolding is code generation for the common case, so you can spend your time on the uncommon case.
— Ruby on Rails Guides, *Getting Started*, 2024 (paraphrase)