The majority of stations going silent fall into two types:
First: Metro areas where there are too many stations and not enough alternative formats for an inferior facility to find a niche and survive.
Second: Rural areas where the big box effect and web purchasing reductions in local retail have cut available advertising dollars so that even one station in a market can not survive.
While some of those stations may be in very remote places in Montana or New Mexico or West Texas or the like, most are in areas where plenty of other signals are available.
An issue with some AMs that are closing is their complex night directional system. It uses lots of land, is expensive to maintain, both technically and keeping the grounds clear, and engineers with directional skills are more and more rare (and expensive).
A good example is Dalilah's AM in rural Oregon: even with a big infusion of talent and money, there was just not enough ad revenue to sustain the station.
Remember, prior to the 50's, there were 1000 or fewer stations on the air, and most places had no reliable local or semi-local night signal at all. Example: Suttons Bay and Northport, Michigan where the lone Traverse City Class IV AM barely reached by day and not at all at night. Radio listening, if any, went to Chicago clear channel stations and WJR in Detroit. It was not until FMs started building out in the late 60's and 70's that the area I mention got reliable night service.