The whole point of submarines is that they're stealthy. Active sonor would give away their position. They're basically swimming blind. The only way this all works is the ocean is big enough that random collisions are statistically rare - but there's not much actually preventing them.