Do you not understand that the same "she" both steps on the worms and kills them?
The "stepping" in this example is not a verb, but a gerund (a verb acting like a noun). It is the object of the preposition "by." The prepositional phrase "by stepping on them" acts as an adverb modifying the verb "kills."
Student or Learner