Decades ago our tent trailer was shaken one night by a bear at Jasper, Canada. We made a lot of noise and it went away. Told the park ranger the next morning and she shook her head and went to the next campsite. She came back quickly and told us she was getting a bear trap as the tent next to us was ripped to shreds. The tent owner luckily stayed the night in town. The ranger told us bears like shampoo and liquid soap and can smell them from far away. That tent had both inside the ripped tent.
I used to live in the deep woods in extreme Northern California, and we'd sleep out fairly often. I snore loud enough that Black Bears a quarter mile away would stop, look at each other wide-eyed and say, 'Good grief! What the hell is THAT?
:-)