Why aren't some dogs afraid of fireworks?

Just the same as some dogs arent afraid of gunshots, nobody knows.