The definition of the verb "soil" is to stain an article with something. It is typically used when someone refers to clothing. The definition of the noun soil is the layer of earth where plants grow or in simpler terms "dirt".
The action of "soiling soil" in the excerpt is to stain the elbows of the character's favorite shirt with dirt.