穿着棉袄去洗澡 means "to wear clothes to shower". Here, 棉袄 is simply a kind of clothing. This paragraph is basically discussing about specializing in a subject versus studying a variety of subjects. The writer uses "going to the public bath naked" (去公共浴室洗澡而出门就一丝不挂) and "wearing clothes to shower" (穿着棉袄去洗澡) as analogies to describe studying a specialized field and studying many different subjects respectively, which in my opinion, is a shitty analogy xp