An airlock is a small room with two doors.  One leads to a place with air you can breathe.  The other leads to a place where you can’t breathe – outer space, or air with the wrong gases.  If you want to go from one to the other, you must go through the airlock, where you put on (or take off) breathing equipment.