In the older, square rigged ships it was not possible to sail into the wind. I'm not sure the etymology offered by the AHD makes any sense, but there you go.