I just provided the answer as given by The Oxford English Dictionary, Sdds. It says: "A ship's latrine (in the bows)."
That usage dates to the middle of the 18th century, whereas 'head', meaning the fore part of a ship in general, dates back to two centuries earlier.
I'm not saying you're wrong, Sdds...all I'm asking for is evidence that you're right!
Your link provided a fascinating picture, but nothing to suggest the cathead was the latrine. Similarly, The Oxford English Dictionary gives a lengthy outline under the heading 'cathead' but not a bit of it says it was used as the latrine either.
Another part of old sailing-ships was the 'masthead'...imagine the deck if that was used as a toilet!
Over to you.