Bears are known to attack humans for many reasons but actually they avoid attacking. One reason is that if you surprise a bear it is likely to attack. The other one, is that bears enjoy to eat food, which is why people tend to avoid leaving food in the forest where bears are.