A rubber sucker, when pressed on a surface sticks to it, because:
Atmospheric pressure acts on it externally
A rubber sucker, when pressed on a surface creates a partial vacuum as shown in the figure.
Once all the air is pushed out and a vacuum is created, the pressure exerted by the air outside is way more than the pressure inside, and hence it sticks to the surface.