Comcast and Charter made some potentially high risk deals with Apple in order to secure rights to sell the iPhone on their struggling networks.
Even though they are the two largest cable companies in the US, Apple was able to strong-arm Comcast and Charter into selling large numbers of other Apple products. In some cases they had to agree to sell them at a discount and eat the subsidized cost.