When you die and go back to the beginning of your current mission why do you not get your ammo back? You cannot do anything with no ammo.
It all depends on the specific mission being done. The game's coded to either restore to what was your ammo status from the last checkpoint encountered, or it's coded to do a save when you die, and that becomes your new starting point.