Hayek's move from economic theory to political philosophy was a natural evolution in his ideas. First, he considered the influence of prices in production. Then he considered the larger question of the role of prices in social life. The conclusion he reached was that law should guarantee to each person a protected sphere within which each could live as much as possible as he pleased. Later in his career, he progressed to the idea that whole societies through their customs, morals, and rules are engaged in macrocompetition, the survivor of which would possess the customs, morals, and rules that are the most materially productive and result in the highest standard of living for the most—the economist's goal.
Hayek's Journey: The Mind of Friedrich Hayek (2003) - Ch. 7 : From Economic Theory to Political Philosophy