سئل شيخنُا الشيخ عبد الله الهرري رضي الله عنه: عمنِ اغتسل عاريًا؟
فقال رحمه الله: لا يكره ما فيه بأسٌ، هو الأفضلُ أن يكون ساتِرًا ومع ذلك يجوزُ بلا كراهةٍ، منِ اغْتَسَلَ عاريًا له ثوابُ الغُسْلِ، التَّعَرِّي للغُسْلِ حاجَة
Our Shaykh, Shaykh ^Abdullāh al-Harariyy, may Allāh have mercy on him, was asked: About the one who bathed naked So he said: it is not disliked, there is nothing wrong in it. It is better to be covered, despite that it is permissible without dislikedness (while naked) Whoever bathes naked receives the reward of ghusl.
Exposing oneself for ghusl is for a need.
shaykhnabilashsharif