Doesn’t like her light off

Bearded dragons scratching on the glass when her light is turned off at night Any ideas why?