After Kivas hits Data with the acid in "The Most Toys" (http://memory-alpha.wikia.com/wiki/The_Most_Toys_(episode)https://memory-alpha.fandom.com/wiki/The_Most_Toys_(episode)), he presents the android with a choice: run around naked, or change into the purple clothes which were refused earlier.
Data chooses the latter option. What is the in-universe reason for this? Data did not want to put the clothes on earlier, and he wouldn't be embarrassed or cold if he was naked.
I guess the most reasonable explanation is that Data, as a Starfleet officer, would want to emulate a typical Starfleet officer in that situation. And the proper thing to do would be to appear presentable, even if it meant donning undesirable clothing.