Thank you for all for your comments and explanations. I suspected what was happening and it is good to get clarification. Also, it is insightful knowing that this behavior is typical of programming languages.
Not just in programming languages. If you have a key to a house in your hand, and someone replaces that key with the key to an empty house, the original house hasn't magically become empty.