They are scavengers - in fact, they belong to the same family of birds as vultures. Finding the carcass of some animal is a real bonus for an eagle. However, adaptation is the secret to the success of any species. We humans do tend to mess up their hunting grounds, but they have learned that we are a really wasteful species and throw away a lot of edible food. Many predators have adapted to using our garbage dumps as a supermarket. While it may appear unseemly for such a magnificent bird to root through garbage, at least it helps them to survive in an increasingly inhospitable world. They also probably find some tasty rodents in those dumpsters.