Can someone please help me with principal differences between ISO and Exp Comp and how they should be applied?

I am aware of little tips (ie. Increase ISO when shooting indoors low light, or increase exp comp when shooting snowy scenes), but I don't really understand why.

I know that ISO increases the sensitivity of the image sensor, but isn't that what Exp Comp does too?

Thanks for any help