A multitude of reasons.
At its most basic level, the spear was simple to make, quick to make and cheap. However it was also very effective on the battlefield due to a combination of its reach, and the fact that it required less room to operate, very effective when fighting alongside other...