It's a graduated license system.
For a car your beginners is a written test. It's called G1.if you pass the written test you get your car license. You're not allow to drive at night, any blood alcohol level, Drive over 80km/h and must have a fully licensed driver in the passenger seat. You have to keep the G1 for minimum of a year (8 months if you do driver's ed) then you can do a road test. If you pass the road test you get your G2 license. With that you're allowed to drive at night and anywhere. The only restriction is no blood alcohol level. Then after holding that for a year you can do another road test for your full G license.
The idea is the same for the bike. M1 is written you keep that for 90 days and then do a road test (or do the safety course) and you get your m2 at the end. Then you keep that for a minimum of a year and a half then do a road test for your M.
With the M1 you're only allowed 80km/h, no passenger, no night driving and no blood alcohol. M2 only the alcohol restriction is there.
Hopefully that makes sense. Quickly typing it out on my lunch break between burger flipping.