I've been reading The Dictators Handbook recently and it does a good job of explaining this situation. You help those that will keep you in power and give you the resources you want. Every American president will help regimes who will give them support and money, so they can pay their supporters (all the people at the top in DC) and then they use what's left over on the people. Democracies tend to spend more on people ideas, because there's a larger set of replaceable (voters) in the selectorate.
It doesn't matter if a leader is doing what is good or not good for the people. The chief goal of a leader is to get in power and stay in power. They have to pay off all their supports, or keys to power. If that involves things that are unsavory. You censor it. In democracies, you just make sure your supporters include the propaganda (a.k.a news) agencies.
If a leader does something that helps the people, like in Libya where they gave people free education, free power, housing subsidies, gas subsidies; but do so at the expense of their supporters (not playing ball with America in the oil trade), then the leaders get take out, given fake trials, killed and the propaganda networks demonize them. It's not hard to demonize them, because all leaders must be corrupt to get into power; so you can always find something to speak to that corruption. Lest we forget that Obama gave America over to the health care industry, killed thousands with predator drones and was the first president to spend every day in office at war.