The gold ring has rust spots. What is the reason?

The gold rings I bought have never been worn, put it in the box, and it has been three years. Now I have taken it out to find that there are rust spots on it. What is the situation?