The Swedish Chef couldn't take the obvious role of ship's cook due to Long John Silver. Thus the random cameo, and the Lampshade Hanging at the same time:
Talking Vegetable: Well, how else d'you think we were gonna get him in this movie?
Rizzo's side business of Rat Cruises — well, rats WERE a common pest on ships.