Although boob is indeed a common slang term for a woman’s breast, and televisions did indeed formerly have tubes in them, these do not not appear to have served as the basis for the term. Boob has also served as a common term for a foolish person for over a hundred years, and television has been referred to as ‘the tube’ since the 1950s. The two words were combined based on the notion that much of what is viewed on television is either foolish, or geared toward foolish people, also known as the booboisie, a word coined by HL Mencken for ‘the class composed of all who are considered boobs
The English name "booby" was possibly based on the Spanish slang term bobo, meaning "stupid",[6] as these tame birds had a habit of landing on board sailing ships, where they were easily captured and eaten. Owing to this, boobies are often mentioned as having been caught and eaten by shipwrecked sailors, notably William Bligh of the Bounty and his adherents during their famous voyage after being set adrift by Fletcher Christian and his followers.
There was a period over centuries where dudes would get on boats to get away from their wives and presumably after months of "I hate my wife" jokes they invariably got really horny and made it everyone's problem.
Understand that zoologists, especially in the field, spend a lot of time very bored, and that's a recipe for making the dumbest dirtbaggiest jokes you can. What starts as "that bird looks like it's got a dick on its head dude" later becomes in scientific literature "phallocephalus"
If you've ever heard of the classic mating dynamic of "males who creep into the harem to mate while the alpha isn't looking," you have probably heard of them described as "sneaky males." This is a change from the original designation the field biologists who first studied this behavior gave it, "sneaky fuckers"