On Windows/macOS/Linux, your save files are stored in a separate directory from the game itself, untouched when you update the game. The data of what items you have is kept in those save files, meaning the state of your inventory (as well as multiple other things) from previous updates will carry over to new updates. This isn't a bug.