A few more points:
Many network affiliates broadcast in HD, even if the source material was recorded or distributed in standard definition. Of course if the source was SD the quality on your screen won't look much better than it would have looked if it had been left in SD. Much of the prime time network programming is HD all the way to the circuitry in your TV or ATSC(no QAM) to analog converter if you are using an antenna.
On either OTA or cable each channel has limitations on how much data it can carry. Significantly more of that capacity is used for a HD sub-channel. If a cable provider limits "channels" included with its economy tier to SD, those "channels" can be distributed as at least four sub-channels per channel over the cable company's coax (may be fiber optic part way to your property) leaving more of their total capacity for programming tiers the company can charge additional fees for. Since an analog channel (limited to SD) ties up the same amount of capacity as a digital channel with up to four sub-channels it's in the best interest (for revenue and competition with satellite) for cable providers to phase out analog services (sometimes a few channels at a time).
The channel numbers displayed on you digital converter or TV no longer correspond the broadcast or cable system frequency. The broadcaster that was broadcasting analog on channel 5 might be broadcasting digital programming on the frequency that used to be channel 37 but still shows as channel 5 when you tune in over your antenna! On a cable system you might have SD signals from four local broadcasters in the same frequency band that a single channel filled before digital cable, all having completely different channel numbers when "tuned to" on your cable converter or even an ATSC-QAM TV.
Broadcasters have a choice of "must carry" which forces cable providers to distribute their main channel without payment to the broadcaster or negotiating some sort of payment (might be in the form of advertising) for carrying the broadcaster's signal. Since many subscribers consider the broadcast networks a highly desirable "channel", that puts the broadcaster in a favorable negotiating position. If the cable company isn't willing to pay the "fee" the cable company has to remove the affiliate from their line up. Note that cable providers have been paying cable only channels for content for decades, even with those channels getting additional revenue in connection with commercials. Of course premium channels, who don't inturupt their programming with commercials, usually charge higher rates.