This gate is usually made out of metal and has bars and a frame connected to the stairwell. It is usually open but can be closed to block the stairwell. I am guessing that this is part of building code since it is in most public buildings like offices and apartments. I am just curious as to the function? I am guessing that this is for safety.