Both cell walls of Plants and Fungi are made from Carbohydrates (cellulose in plants and chitin in fungi) and both serve the same purpose, to act as a structure for the cell.
A wall is a tough protective boundary around a structure but it can have some door like opening to pass through. As wall is around a cell that's why it is called cell wall. In this way a tough...
Regarding analogies, the cell wall is similar to the walls that of a building, which also hold the rest of the structure up, or possibly a fence, which separates properties.