I feel dictators/autocrats come in two flavors.
The first genuinely feel they know what is best for the country and how to best govern it. They might still enrich themselves and their cronies in the process of course.
The second are primarily out to enrich themselves and their cronies. The country exists to support this selfish goal.
Of course this is not black and white, but rather a spectrum but various historical figures seem to strongly lean to one side or the other.