Do you like other people have the habit of putting a glass of water by your nightstand when you go to bed? Do you often wake up and drink that water? This is why you should brake that habit.
Not only does it not taste the same after it has been there for a while but it has also changed its composition.
Opposite of the food, the regular water does not contain sugars and proteins which ca be easily targeted by microbes and to come to pollution. Still there is no explanation from which comes the strange taste in the water that stood on the nightstand over the night by your bed.
A large amount of dust and bacteria can be gathered in that glass of water.
When water is exposed to air it absorbs carbon dioxide and a small part of that CO2 is converted into carbonic acid, which means that water exposed to the air changes its chemical composition. When carbon acid releases one or two protons and is turned into carbonate or bicarbonate, it lowers the pH of water and thus change its taste.
This does not mean that the water is bad but certainly have changed the taste after standing all night in the nightstand and gathering bacteria and dust from the air. I am sure you will think twice should you or should not to drink it.