My son bought a large towel with fasteners for 980 yen ($7.97 €7.21). He brings it to the school and uses it for school swimming lessons. When the students are changing their clothes, they wear towels to hide their lower bodies.
I do not think it is necessary to hide the lower body. Actually I do not, in a locker room. Maybe it is a kind of teenagers fashion.