Why is the Keychain data being removed in iOS after the Identity Version changes?

The app I am developing uses the Keychain and everything works on the simulator and my device (ios 14.5.1). When I change the Version number (marketing version) in Xcode (12.5) the KeyChain data is removed.

It happens only when I change that number. The signing provision, Display Name, bundle identifier, and build number all remain the same.
Never mind, it looks like the plugin I am using was clearing the Keychain when the Version number changed.
Why is the Keychain data being removed in iOS after the Identity Version changes?
 
 
Q