New to BMWs so I have a dumb question...

My daughter was filming me putting the RT in the garage. I viewed it later and saw that my headlights and tail lights were flashing. I only have 2K on the bike right now and since I can't see my lights when riding, I never noticed this. Does anyone know what causes this. Can I control this on the bike?