I seriously doubt that bears looking for easier, tastier food provided by careless human behavior is the result of a genetic trait. It's an easily learned behavior by fairly intelligent animals that has been demonstrated in many animal behavioral studies over the years. People behave the same way. Just look at the prevalence of fast food in America; so much easier than going to the store, buying fresh food, and preparing it as a healthy meal!