A raisin, when put in a sugar solution (or any other concentrated solution), loses water by exosmosis and consequently shrinks. This happens due to osmosis.
Osmosis is the passage of water from a region of high water concentration to a region of lower water concentration.