A warship is usually densely stuffed with gear, so building it in small sections, even if really accurate dimensional fit is achieved, does multiply the the joints and connections...
These are usually the first to fail, at least in electronics.
Still, the US Navy builds subs by the sausage slice, so the concept has been proven.