Medium members (like you and me) pay $5/month to read all of the premium content on Medium. Then Medium takes a portion of that money (I don’t believe they’ve said what percentage) and pays all of their writers who write in the Partner Program. Writers are paid based upon how much time Medium members spend reading that writer’s content.
I hope that’s helpful! You can find more info on this Medium help page.