This has happened to me a few times. I sometimes empty ammo to conserve inventory space by combining my same types of ammo. I have noticed though that when I do this, sometimes the loose ammo changes to 0 and I will lose whatever the amount is.
The ammos aren't combining, they are just being set to 0 remaining. {F30173}