With warfare, noblemen have to prove themselves in battle. The useless ones either get killed, or demonstrate their incompetence and get moved to harmless roles.
Without warfare, monarchy turns into a court hierarchy. High school with the death penalty. Social climbers rather than competent people rise.
The warfare is too deadly nowadays to rely on warfare to select good noblemen.