I'm not sure what kind of contract they might have specifically with each other, but generally the way Steam works is that Valve just charges a percentage of what the developer makes.