One thing to think about is that all birds are descended from a common ancestor that is carnivorous. Every omnivorous or herbivorous bird evolved that diet from ancestors that primarily ate animal products.
Just goes to show that with enough time, life finds a way to make use of biomass all around it, even if it means evolving away from an ancestor's dietary limits.