Valve is definitely getting some kind of money out of the deal.
"Steam keys are meant to be a convenient tool for game developers to sell their game on other stores and at retail. Steam keys are free and can be activated by customers on Steam to grant a license to a product."