If you want to receive credit for what you do, you need to make sure that those who you want credit from know that you did it. If no one knows what you have done, not only will you not receive credit, but you will not receive anything else for your work either. Unless you are doing something for yourself, which will not be of interest to others, you need to let potentially interested parties know of it. You cannot sell items that no one knows about, you cannot provide services or skills that no one knows you possess. Even if you let them know, they may not buy, but if they don't know they CANNOT buy.
The obverse of marketing yourself is captured in the quote: "It is amazing what you can accomplish if you do not care who gets the credit." The earliest version I have found is attributed to Harry S Truman.