Humility makes one focus on what is not known and so keeps increasing ones knowledge. Pride makes one focus on what is known and thus stagnates ones knowledge.
Humility makes you realize someone always knows more than you. Pride makes you think (perhaps erroneously) the number of people that know more than you is small.