He didn’t know she was in there or naked and ran out when he realized she was
I don’t think you’d get sexual harassment when you ran out with your hands over your eyes to avoid seeing her naked. He didn’t go in there intending to try and see her naked, he just heard singing and joined in.