They won’t come around to attack a human randomly. Bears only attack when surprised, when being territorial, or for food. There, they won’t get surprised, they are very used to that area being “people territory”, and they don’t want to eat you (if they did, they would have attacked a human there long ago).
Keep your food out of your tent, clean up food from the campsite before you go to bed, and you’ll be fine.