Refectory comes from the Latin reficere, to restore. It was the room where monks ate, and the long table took the room's name.