There could be a circuit in there that turns the light off when the battery gets below a certain voltage. It turns off and without a load the battery voltage climbs back up turning it back on, aand the cycle continues.
Sounds like old batteries to me . . .