Why isn’t the “pantry” called the “food store”?

Does your pantry have a cashier and let you buy stuff there?

Because a food store sounds like it does.