The Shipwrecked Surfer

We found that the sum of the distances is minimized at any point inside the triangle and it is equal to the length of the altitude. Why is that true?

Attachments