With airplanes, a lot of maintenance routines depends on the number of cycles (takeoffs+landings). No one knows how many cycles this sub was safe to perform, but just because it had successfully performed N dives, does not imply that N+1 is safe (or even N for that matter).