Why are the keys on a piano black and white?

Why are the keys on a piano black and white?

Also - do you sweat in water?