Back when it was unlucky to have women aboard ships.
The crew needed a solution to their sexual needs. This task was assigned to the 'Pitboy' (usually around 12-15 in age) who would take up position on one side of the
glory hole while he 'serviced' the crew members
on the other side.