Good fiction writers seem to have a very deep understanding of human behavior, both as individuals and groups/systems. It's probably a combination of art imitating life, imitating art, and part prediction based on this understanding how human behavior and human systems evolve and interact.