unfortunately this is something that most of the smaller bikes suffer from, including most modern mopeds.
the headlight brightness will vary according to engine speed because at low revs there is less electricity being generated to power the headlight, wheras at higher RPMs there is more being generated and the headlight is lit sufficiently.
on my DT50 at idle the headlight is very dim, but once im riding i dont tend to realise it