Also, Boeing spun off Spirit in 2005 to juice its own profit margins, so the poor coordination between these two entities is ultimately Boeing's poor judgment. And more specifically that of Harry Stonecipher, perhaps the worst American CEO this side of Jack Welch.
A benefit of being a golden child business to the US government is you don’t have to worry about economic consequences like a normal business. They’ll still make money off gov contracts and the “local jobs” monopoly system that congress protects like the mob.