When you write and record a song, two rights are created: the right to the recording (a.k.a. the master) and the right to the underlying song itself (a.k.a. the publishing).
If you've written a song and haven't sold off or transferred all of your rights to someone else, you are a music publisher. If you have transferred your rights to someone else, that someone else is also a music publisher. Perhaps you've sold off your songs to a traditional publisher like Sony/ATV Music Publishing for a hefty advance, or perhaps you've given a company like Songtrust the exclusive right to administer your publishing rights, i.e., collect income on your behalf in exchange for a percentage of the profits. Those organizations are also music publishers.