And the other Royal Navy tradition: Captains are inviolate commanders, at all times in all settings. They present "serious". They eat and drink separately from the crew. They have only three or four other officers that they ever get to, comparatively, relax with.
So, you have a comedy officer, and you have a captain, and the captain simply looks the other way when the comedy officer is up to their hijinks.
He *knows* the hijinks. He *sees* the hijinks. But he pretends not to.