Samuel Gompers had the same goals for the labor movement as the socialists and anarchists did.

This statement is not accurate. While Samuel Gompers and the labor movement did advocate for workers' rights and better working conditions, their goals and methods differed from those of socialists and anarchists.

Samuel Gompers was the founder and leader of the American Federation of Labor (AFL), a labor union that focused primarily on improving wages, working hours, and workplace conditions for skilled workers. Gompers believed in collective bargaining, negotiation, and incremental changes within the existing capitalist system. He aimed to improve the conditions for workers within the framework of capitalism and sought limited reforms rather than a radical transformation of society.

On the other hand, socialists and anarchists aimed for broader societal changes and the establishment of a more egalitarian and cooperative economic system. Socialists sought to redistribute wealth and power, eliminate exploitation, and establish workers' control over the means of production. Anarchists, although a diverse group with varying beliefs, generally sought to abolish all forms of government and hierarchical structures, including capitalism, and replace them with a stateless society based on voluntary cooperation.

While there might have been some overlapping concerns regarding workers' rights and economic justice, Samuel Gompers and the labor movement's goals were more reformist in nature, focusing on incremental improvements within the capitalist system. Socialists and anarchists, on the other hand, sought more fundamental and transformative changes to society and the economy.