Danny was aware of DC comics and a huge fan so when he was unceremoniously chucked into the DC universe (probably the work of Clockwork but maybe some random ghost he was fighting) he fanboyed. Hard.
Just Danny realizing where he is and causing chaos, maybe its intentional maybe not, but chaos is happening. Probably not actually putting people in danger, I think he’d be more like Nite-Mite than Bat-Mite but maybe his is a nuisance.