caldrail is right, it's important to remember that the pila wasn't a killing weapon, it was a disabling weapon. Once one or two of them were stuck in your shield you pretty much had to ditch the thing. The added weight made it heavy, and the protruding pila made it highly unwieldy (and provided an easy way for your opponent to disarm if you didn't disarm yourself). The effect on enemy morale was also an important factor. Of course Romans weren't the only ones to think of this, across the ancient world javelins of all sorts were used for the same purpose be it by Celts, Samnites, Iberians, or Greek Thureophoroi.