When we put some raisins in a bowl containing water, after 10-12 hours, we will notice that the raisins have swelled up. The raisins have absorbed water.
But when we put some soft-skinned grapes in another bowl containing thick syrup of sugar. After 10-12 hours we will notice that grapes have shrunk. The grapes have lost water.
In both cases the gain or loss of water is through the peel acting as a kind of semipermeable membrane. This membrane has very minute pores which allow water molecules to pass through, but prevent the larger ones of sugar.