If you’re using the second or third weapon slot, if you unequip all weapons, when equipping only one, it won’t be equipped.
This happens because the character still thinks they are using the second or third weapon slot, needing to equip all slots again to regain control of the weapons.