Why not?
The existence of these laws proves that law is not a reference for moral. If you have to be selective, it only means that your argument is flawed.
And also...nudity is not harmful to anyone. The only reason why it is illegal to be publicly nude in some countries (not all of it... believe me or not, there are still a lot of places that are perfectly fine with public nudity), is because the society has pushed so much on everyone these negative perspectives on nudity, that they felt entitled to forbid anyone from disagreeing with them, by claiming it as “offensive”, or “inappropriate”.
Well...
There are people who perceive homoaffective couples publicly holding hands as “offensive” and “inappropriate” as well...
However, today we all realized that the prejudiced and bigoted point of view of some people shouldn’t be enough reason to deny other people, who aren’t harming anyone, their right to be themselves and live their lives as they desire.