Do the items you're wearing put boosts on stats that make it so that you can wear the other item? If so, if you're unequipping an item, that boost is removed, and so if your stats don't meet the requirements of other items anymore, that item will also be automatically unequipped.