Sometimes upgrading items actually decrease their stats instead of increasing them

I’ve noticed this as well. Not really a pattern to identify though.