Credit is a weird thing. People are super sensitive about it. They can also be obsessed with it.
Stealing credit is saying "I" did this specific thing, when in fact, you personally, did not.
Stealing credit is not saying "we" did this thing when you are the leader or a member of the "we" - that is championing wins and getting visibility for your team.
Stealing credit is also not sharing wins and calling out the participants by name.
Some people think that simply the act of talking about something that you personally did not do, but maybe influenced, led peripherally, or advocated for is "stealing credit." But it's not.
I've worked here a long time, and verbalizing wins, talking about team achievements and making sure people constantly see the value your team generates is part of the game. It's how roles stay funded and you win the game of AOP.
It's almost never as cut and dry as "they always take the credit."
That said, there are some sh---y bosses out there too.