This is convenient for others, but not for you. They will take advantage of you if you think like that and you not be seen as leadership material.
Either challenge it, leave or find a way to prevent that next time. If you truly have no choice but to put up, then you have no choice. But don't be naive doormat.
If your goal is to see how much good stuff you can coerce into existence for the company then it doesn’t matter who does the work, who takes credit, or even whether anyone realizes anything happened. All that matters for you to hit that goal is the stuff getting done.
Also, leader needs to be able to protect team or company from under-the-belt attempts of customers, suppliers, competitors and such. Some of them will try that for sure and it is leaders job to deal with it.
Or that leaders are not responsible for shaping culture?
Or that leaders are not responsible for protecting/ensuring that company looks capable, creative etc to outside?
You pat yourself on the back for a job well done! Your idea got implemented, congratulations.