Why in the world is there a -4 penalty when using spears against infantry?

I'm pretty sure spears were good against infantry.