Not only are t-shirts not allowed on French beaches, but men are REQUIRED to wear Speedo-type swimsuits. There’s a good reason, though. It’s all about cleanliness.
Here is a fascinating list of interesting regional, national and local codes from around the world…
https://www.farandwide.com/s/weird-laws-world-4961c1ede8d749bf