Some families with an outdoor swimming pool at their house have a no nudity inside the house rule. They swim nude, lie in the sun nude, but they put clothes or a towel on when they come inside the house. The rule may be to show politeness or respect for others. A fancy expression for this is a matter of decorum. It is comparable to a rule like "mobile devices (like phones) can be used at breakfast but not at the evening meal."