Sonar has been used extensively for over 70 years including sonobuoys - ever heard of one killing a whale?
With the exception of Navy’s LFA which cannot be used within 14 miles of a coast and when marine mammals are present. Much more powerful than sonar used for mapping.
They COULD be using technologies other than sonar or modified sonar that affects whales enough to destroy their inner compasses.