They have been drugged and brainwashed into thinking that they are doing exactly what they want, not what some dictator wants them to do.
The dictator is often good at brainwashing his populace.
They are acting according to their self-interests.