Rodents don't mind chewing holes in your tent and pack, in order to get to it. Plus, in bear country, you might end up being the food. On occasion, being the fastidiously clean camper that I am, I sleep with my food. It depends on where I am and the kind of food I'm carrying. But, generally speaking, I do not.
Bears love Italian.
In bear country, it is advisable to store, cook, and eat food 200 feet or so from where you sleep and avoid getting it on your clothes that will be getting into the tent with you. Do not urinate in and around streams and lakes. Do not dispose of fish entrails in streams and lakes. Wash yourself and dirty cookware a reasonable distance from fresh water sources. Do not dump soap suds into streams and lakes.