Sanctuary is a word derived from the Latin sanctuarium, which is, like most words ending in -arium, a container for keeping something in—in this case holy things or perhaps holy people, sancta or sancti. The meaning was extended to places of holiness or safety.