If you have an item assigned to a hotbar key (1-9) and you equip an item whilst playing a piano, you equip it anyway.
Hey, there might be some lost diamond rings inside of it! Seems pretty normal to me.