https://www.motortrend.com/news/2022-hyundai-elantra-n-loud-exhaust-police-california/
The car was being operated in track mode which changes the exhaust note.
When the test station tested for compliance they did not follow the procedure outlined in SAE J1492. The test station asked the driver which mode was the loudest and tested that mode and not the normal mode that the car defaults to when started.