I think animals are much smarter than people give them credit for.
In this case, I think the whale was protecting Nan Hauser. Protective behavior from aquatic mammals like whales and dolphins towards humans is well documented. In a number of cases, dolphins and whales will swim close to boats and ships and lift their head and eyes above the water to " spy " on the ship and to extend friendly greetings.
http://www.cbc.ca/news/world/dolphin...shark-1.513716
http://www.dailymail.co.uk/news/arti...challenge.html
https://www.theguardian.com/science/...ernationalnews
This may well just be a typical day at the office for these social creatures.