Out here in California, you need to pass the MSF course before you can get an M1 endorsement on your Driver's License. It is important that you do so, because a long time ago, the police loved doing paper checks at various stops in the mountains, for speeding, non CARB exhaust systems, illegal license plate location, etc, etc.
Downside is that once you have it, there is nothing stopping you from buying a GSX-R1000 or similar Superbike right out of the gate.
For scooters and e-bikes
CBT info, the MSF and/or similar training is overkill and a waste of time, and should be completely voluntary. If you can ride a bike, you can ride a scooter/ebike.
Motorcycles are in a different class altogether and training is absolutely essential. But for scooters/ebikes, it is voluntary and I don't see the point of it.