Good Managers Need to be Team Players
Whilst it is not always the case, many managers are elevated to their management position because they have shown proficiency in performing the tasks that their team or particular division is there to do. As a result, it is likely to be true that the new manager is particularly good at doing those tasks and has gotten used to receiving credit and recognition for what they produce.
However, although they may still metaphorically (or literally!) 'get their hands dirty' and help with the producing side of things, as a manager their primary purpose is to lead and manage those workers who make up their team. Rather than aiming to be praised for what they produce, they are now judged by those above them in the organisational hierarchy for how their team performs and whether the department as a whole achieves its goals and targets. A new manager must let go of their personal and sometimes selfish needs for personal recognition and make the realisation that the productivity of the group is important now.
Becoming a manager can be compared to becoming a parent for the first time. They must now realise that their life has to change and they have responsibilities and others to think about now rather than just thinking about themselves and what makes them happy. The manager is in many ways the parent for their group, and needs to understand that in many cases the needs of the group will have to come before their own desire for attention and praise!