HBO charges Comcast a flat rate to carry their content, because HBO has great content.
Comcast then bundles HBO in various packages designed to bring a profit, knowing that people just want HBO, and are willing to pay extra for a bundle in order to include it.
In this case, Netflix is paying Comcast for the rights to use their End of Mile network.