In Yosemite, you are
prohibited by law from leaving food, coolers, or other scented items (including toothpaste, or Chapstick) in your cars at hiking trailheads...they attract bears. If you've brought those items with you, they must be left in these bear-proof boxes. Every campsite also had them, for storage in camp.