+3 that the bear was looking for food. If the food was in the tepee, of course the bear will try to get in! For a bear, the smell of food (or even cosmetics or toothpaste) is a very powerful attractant!
_________________________
May your trails be crooked, winding, lonesome, dangerous, leading to the most amazing view--E. Abbey