You're touching on a key issue in medieval historiography. The ideal and the reality of knighthood often didn't match up. Yes, there were codes of chivalry, but there were also knights who exploited the peasantry, seized land through conquest or cunning, and participated in wars with more interest in plunder …