The phrase "a kettle of fish" is a British idiom meaning a messy or complicated situation. While its exact origin is unknown, there are several theories:
Fishing: Catching fish in large quantities; a "kettle" might be a basket holding a chaotic mass of fish.
Cooking: The messy process of cleaning and preparing a large quantity of fish.
General confusion: Evolved from the idea of a large quantity that is difficult to manage.
There is no definitive proof for any theory. The origin is likely a combination of these elements and natural language evolution.
Regardless of origin, "a kettle of fish" remains a colorful way to describe a challenging situation.