I think this is largely an east vs west thing. Rural areas in the west certainly arent rich, but theyre generally not dirt poor like rust belt areas in the eastern US are.
The hospitals are closing because there arent enough medical schools in the US so there is a doctor shortage and since doctors are highly educated the vast majority of them prefer urban living. Most rural hospitals have to pay around double to convince doctors to work there compared to urban hospitals.