Etymology
Today it means: A sailor assigned to the mainmast Full definition →
From mainmast + -man.
Etymology from Wiktionary, CC BY-SA 4.0.