A mixed economy is an economic system that combines elements of capitalism and socialism. It arose due to failures in both pure capitalism and socialism. Capitalism led to issues like unemployment and wealth inequality, while socialism slowed economic growth and reduced personal freedom. A mixed economy allows for both private enterprise and state involvement in the economy to balance these issues.