Profit is no necessary for corruption to happen. Lenin and Stalin did prosecute profit(and millions starved as a consequence) and their country was extremely corrupt.
It is power that corrupts. Humans have a social hierarchy like other social animals and people want to be above and not down.
Power is inside our brains not outside. You don't need to teach anything to a horse or a Wolf, or gorillas, they will try to dominate the other horses, Wolves or Gorillas.
And Humans, specially dominant Humans want to dominate other humans, and most humans don't like being dominated.