Auto-translated
The logic is there. According to the manual (p. 300), when a hero levels up under normal circumstances, the following is offered: a) a new skill; b) an improvement to an existing skill; c) a standard ability (i.e., one available to all races); d) a racial ability. In the vast majority of cases, this is exactly what we see.