Why foods treated with salt or sugar have longer shelf life?

urgent!!
1 answer 1