Modern AI can barely drive a car under ideal conditions without crashing. The ocean is full of sounds. AI is decades away (still, and I've said this now for decades) from figuring out what it is hearing.
Sub detection involves a series of guesses with no significant penalty for being wrong - you just spend time looking again until you're sure. It's an infinitely easier problem.