why does my oil light come on and off

why does my oil light come on and off