Why is one glass of water left on the altar during dia de los muertos?

i think it is because they believe that the people of the dead will come and drink it