US shipbuilders get orders mainly from military. Civilian orders is almost zero. The facility and technology for military vs civilian ships are vast, that a shipyard focusing on one cannot efficiently work on the other.
I don’t think that it’s a problem. If a facility is designed for civilian products, and can only work on government contracts inefficiently, that sounds like… all government contracts in recent memory. It is well known that US government overpays on everything anyway.