means that
life at sea is traditionally portrayed as demanding and dangerous rather than an easy source of recreation.
Imagine a case where the sailor’s life is hard and dangerous, no just pleasure and excitement, as many think.; then “he that would go to sea for pleasure would go to hell for a pastime” fits well.