As you can see this blog is from "Element", who are offering Matrix deployments for enterprise and governments as a service, so they are definitely being paid for their work. As the company was founded by the Matrix creators, I'm sure they are also spending dev resources on it, but you can read more on that here:
https://element.io/en/matrix-relationshipI personally think this is a good example of how you can build an open-source product and still profit of it commercially by offering it as a vendor to enterprise and governments.