From Bears of Yosemite by M.E. Beatty:
It is certainly not advisable to place your slab of bacon under the mattress of a cot, as one lady visitor is reported to have done. Needless to say, she was rudely rolled off her cot by a bear during the middle of the night, and suffered both a loss of dignity and a slab of bacon.
Maybe it was the bacon fairy!