I think sometimes the credit is deserved, but there are times when credit for papers tends to gravitate toward certain individuals who are better at managing public perceptions of citations.
Gravity isn't a bad analogy: people with large citation counts tend to accumulate more, and perceived credit gets taken away from other individuals, even if subconsciously. I think it leads to a grossly distorted idea of how credit is distributed.
I suspect this varies a lot but in my experience these large papers with many many researchers involved authorship is very murky in all sorts of ways. People with prominent authorships might not even deserve to be on the paper at all, and people who are lost in the sea might have actually made a significant contribution.