The reason glue doesn’t stick to the inside of a bottle is that it hasn’t been exposed to air. Thus, there is no way the water in it would evaporate and leave behind sticky polymers. That’s why glue remains a free-flowing liquid when inside the bottle.