https://en.wikipedia.org/wiki/Open-access_mandate
So the publisher still gets a significant amount of money, albeit often paid by the institution of the author.
https://en.wikipedia.org/wiki/Open-access_mandate