The glue is designed to chemically change once it is exposed to the atmosphere. Superglue is made from a class of chemicals called cyanoacrylates. When they are in the tube, they remain as shorter-chained molecules that do not bond to one another. Once exposed to something basic, like the moisture in the air, they rapidly bond with one another, forming long chains that connect to one another and whatever they are touching. This is also why the glue goes bad if you don’t seal the container.