That was due to a greater defensive benefit, which meant that castle defenders were able to stab with spears attacking soldiers who fell into the moat.
堀に落ちた攻城側の兵を、守城側の兵が槍で突いて攻撃が可能であるほうが、防衛上の利点が大きかったからである。