The plant was already there and already producing. GM was likely well aware of
the risks and decided that keeping the plant producing as long as possible made more economic sense than shutting it down earlier than necessary. If they had shut it down 2 or 5 years ago that's 2-5 years of production they would have lost.