Basically a kitchen storage room. I assume the pan- is from Latin bread, so it probably started as bread storage. I don't have one, but my grandmother's house had a large pantry which housed flour, sugar, bread, pickles, jams and jellies, etc., as well as dishes. The dish cupboards could be opened either from the pantry or the kitchen. The pantry also offered ready access to the root cellar.

Peter