The android goes outside the spaceship wearing a space suit. Normally this would not be necessary, however the android explained that the space suit provides the necessary insulation from the radiation bombarding the ship.
After the android entered the airlock, the internal doors were sealed. Light can be clearly seen where the doors met; therefore, there is not an airtight seal. When the outer doors were opened, the ship's atmosphere would have leaked out.