Why do you buy jewelry cabinets and put water in the cabinet?

Now in the place where gold and silver jewelry, put a high cup in the window and a glass of water inside. Why is this?