Ah, no, that's not an equivalent comparison. You're talking about state/local ordinances that govern people wearing clothes. Some places allow topless at the beach, while others allow nudity in certain situations.
I view mask wearing in a similar vein. It's a state/local issue. Federal has no enforcement power unless it's on federal property when it comes to what we wear.