What is water weight?

I see lots of people saying 'oh that's just water weight'. Why does fasting cause you to lose water? Why do we have 'water weight'? Do you only start losing fat once water weight is gone? Why is that?