Here's why:
* Personification gives human qualities to non-human things.
* In this case, shadows are inanimate objects, but the sentence implies that Johnny is afraid of the shadow as if it were a living being that could harm him.
This phrase evokes a strong image of Johnny's extreme fear, making him seem almost childish or irrational.