This could mean While Jesus was praying on the mountainside.
The boat had a sail, but it would not have worked when the wind was against them.