The Cannes dress code polices bodies. Why doesn't the festival protect them?

The Cannes dress code polices bodies. Why doesn't the festival protect them?