Simplify the sentence: Another reason that led to their extinction was that, unfortunately, they liked to return in large flocks to places where some of them had just been killed.
A factor that contributed to their extinction was the unfortunate flocking behavior that led them to return immediately to a location where some of the birds had just been killed.