I'll add my reply that I was typing out for the other post before it was deleted.
To make your assertion requires far too many assumptions for you to know whether this was an act of "charity" or not.
People are with more than their paper skill sets. If this person had been working at Stack Overflow for years, then she probably knows far more about the company itself than a new CS grad. That can be a huge asset. Likewise, her experience of being a manager of the Production Design team, and the Director of Design, can be great experiences to add depth to the development team.
I am a senior software engineer. I am far from the best programmer on my team. A new CS grad could probably out-whiteboard any CS problem thrown at me. But my knowledge of 12 years of the company's development history, my gut-understanding of what kinds of decisions are good for the company, my ability to communicate well with product owners and elicit the right kinds of information and foresee design problems before they happen all contribute to me being an invaluable member of the team.