Whales get stranded as well as getting caught in fishing nets. Plenty of examples of the various species of beaked whales have been examined up close.
Catching a fish in a net doesn't tell you how long they stay under and how deep they can dive.