From canned food to instant coffee, many everyday staples were born not in kitchens but on battlefields.