To put it simply, two clean flat surfaces stick together for the same reason each of the two objects is held together in the first place: weak and strong nuclear forces and electromagnetism. However the specifics of this might vary greatly depending on the material and other circumstances.