That was the rank that he reached during the Wars of the Revolution.
When he ended the wars he was head of state.
Reaching the rank of general of division was a pretty good achievement, don't you think?