The anchor hung on the cathead, a piece of timber outside the ship to which the anchor is hung to keep it clear of the ship.
“The decks were alllife and commotion; the sailors on the forecastle singing, ‘Ho! cheerly. menʹ as they catted the anchor.”—H. Melville: Omoo, xxxvi. p. 191.