Maybe women inmates are perceived to be less of an escape risk.
Anamosa and Fort Madison have had their prisons for a long time. Newton has had the minimum security a while but I think built the medium in the 1990’s. Probably had way less impact than losing Maytag. I think Clarinda and Mt. Pleasant lost mental health facilities when they were closed and then got prisons. Fort Dodge was probably declining before they got their prison, which I think was also the 1990’s. Rockwell City has minimum security but in a former life was a women’s reformatory so they have had a prison for a while.