How come if I weigh myself after eating I weigh more than what I even ate.

For example say I eat a sandwhich and then I go and weight myself like half an hour later and I weight like 5 pounds more butt he sandwhich didnt even weigh that...how does that happen?