Engine noise is due to fuel injection. Not sure how that’s illegal.
Pretty much every car for the last thirty years has had fuel injection, but most of them aren't very loud.
As I understand it, there is a legal limit on noise emissions some for vehicles. To get round this bikes are supplied with a quiet exhaust and a second loud exhaust. They tell customers the loud exhaust is for use on private race tracks but obviously this is widely ignored.