It depends. Some networks pay the cable company, other networks get paid by the cable company and others just ask for a spot and share ad revenue and allow the cable company to advertise locally.
I think the shopping channels pay for carriage, and they are popular beyond my wildest expectations - if I did anything to make one of them go out there would be calls complaining about it immediately!