You are generalizing far too much. Not all medieval armies were formed only by conscripted untrained peasants and nobles: it varied much according to time and place. Byzantines as well as the Polish-Lithuanian Commonwealth employed regularly well trained troops.