When we press a rubber sucker on a smooth surface, we remove some of the air between the sucker and the smooth surface. This deficiency of air lets the air outside to exert pressure on the surface of the sucker. Force due to the pressure keeps the sucker stuck to the surface.