WASHINGTON — There is something inherently head-spinning about the so-called burkini bans that are popping up in coastal France. The obviousness of the contradiction — imposing rules on what women can wear on the grounds that it’s wrong for women to have to obey rules about what women can wear — makes it clear that there must be something deeper going on.

“Burkinis” are, essentially, full-body swimsuits that comply with Islamic modesty standards, and on Wednesday, Prime Minister Manuel Valls of France waded into the raging debate over the bans in some of the country’s beach towns, denouncing the rarely seen garb as part of the “enslavement of women.”

This, of course, is not really about swimwear. Social scientists say it is also not primarily about protecting Muslim women from patriarchy, but about protecting France’s non-Muslim majority from having to confront a changing world: one that requires them to widen their sense of identity when many would prefer to keep it as it was.

“These sorts of statements are a way to police what is French and what is not French,” said Terrence G. Peterson, a professor at Florida International University who studies France’s relationship with Muslim immigrants and the Muslim world.