I believe this was also a feature on us versions of iOS years ago. Some developers worked around it in “stealth camera” apps by playing the inverse of the camera shutter soundwave to silence it.
Although it's illegal, that's a brilliant hack. It's also a good reminder that even the simplest systems, which are vetted by dozens of professionals, could be easily defeated...
It's a law there because upskirting is a huge problem. I think OP was referring to an LED indicator so the phone owner/user could tell if the camera is in use by an app though.
Dedicated cameras, whatever their sizes (e.g. gopro), don’t have a mandatory shutter sound. Actual upskirting has little to do with it, phone makers/carriers decided to add the sound to preemptively deflect any issue that could slow the camera adoption when it went live.